arm-linux-gnueabi-ld doens't search /usr/arm-linux-gnueabi/lib
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: binutils
Hi
the SEARCH_DIR list is probably wrong:
ld --verbose | grep SEARCH
SEARCH_
arm-linux-
SEARCH_
this is withbinutils-
I think we want the cross-toolchain to also look at /usr/$target_
I'm not actually sure it's correct for our toolchain to look at lib64 rather than lib.
Thanks,
Actually, I have a test case for this issue: gnueabi- gcc -fPIC -c libfoo.c gnueabi- ld -z defs -shared -o libfoo.so libfoo.o -lpthread gnueabi- ld: skipping incompatible //usr/lib/ libpthread. so when searching for -lpthread libpthread. a: could not read symbols: File format not recognized
arm-linux-
arm-linux-
arm-linux-
//usr/lib/
(fails)
this is with libfoo.c:
#include "libfoo.h"
#include <pthread.h>
int libfoo_run(void) {
pthread_mutex_t m;
return pthread_ mutex_init( &m, NULL);
}
and libfoo.h:
int libfoo_run(void);