View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#63
1029 packages from squeeze. And now I started packages from Wheezy (repo opened for it, check opening post).
----
I have problem. Wheezy installs (some) libraries to the
/lib/arm-linux-gnueabi/
and
/usr/lib/arm-linux-gnueabi/

I have then added LD_LIBRARY_PATH=/lib/arm-linux-gnueabi/:/usr/lib/arm-linux-gnueabi/ and I can use them.

But during debian packaging it is not using LD_LIBRARY_PATH . I tried to tune /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/gcc.specs
I added
Code:
*link_libgcc:
%D -L/usr/lib/arm-linux-gnueabi -L/lib/arm-linux-gnueabi/
And for some packages it works, but not all. So I'm thinking this is still wrong way. I have one example: during compiling wget (configure) it runs:

Code:
gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security  -DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -g -Wall -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions  -Wl,-z,relro -L/usr/lib/arm-linux-gnueabi conftest.c /usr/lib/libgnutls.so -lgcrypt -lgpg-error -lz
And error is
Code:
/scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/bin/../lib/gcc/arm-none-linux-gnueabi/4.7.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libtasn1.so.3, needed by /usr/lib/libgnutls.so, not found (try using -rpath or -rpath-link)
When I then modify line, it found needed libraries:
Code:
gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security  -DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -g -Wall -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions  -Wl,-z,relro -Wl,-rpath -Wl,/usr/lib/arm-linux-gnueabi conftest.c /usr/lib/libgnutls.so -lgcrypt -lgpg-error -lz
What will be the correct (and/or cleanest) way to handle this?
 

The Following 9 Users Say Thank You to AapoRantalainen For This Useful Post: