Works for me under Natty:

15:29 h...@home:a$ cat libfoo.h
int libfoo_run(void);
15:29 h...@home:a$ cat libfoo.c
#include "libfoo.h"

#include <pthread.h>

int libfoo_run(void) {
    pthread_mutex_t m;

    return pthread_mutex_init(&m, NULL);
} /* int libfoo_run(void) */
15:29 h...@home:a$ arm-linux-gnueabi-gcc -fPIC -c libfoo.c
15:29 h...@home:a$ arm-linux-gnueabi-ld -z defs -shared -o libfoo.so libfoo.o 
-lpthread
15:29 h...@home:a$ file *
libfoo.c:  ASCII C program text
libfoo.h:  ASCII text
libfoo.o:  ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
libfoo.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically 
linked, not stripped

15:29 h...@home:a$ LC_ALL=C apt-cache policy binutils-arm-linux-gnueabi 
binutils-arm-linux-gnueabi:
  Installed: 2.21-1ubuntu4cross1.55
  Candidate: 2.21-1ubuntu4cross1.55
  Version table:
 *** 2.21-1ubuntu4cross1.55 0
        999 http://de.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.20.51.20100908-0ubuntu2cross1.50 0
        999 http://de.archive.ubuntu.com/ubuntu/ maverick/universe amd64 
Packages

And under Maverick:

(devel/maverick/amd64)r...@home:/tmp/a# arm-linux-gnueabi-gcc -fPIC -c libfoo.c
(devel/maverick/amd64)r...@home:/tmp/a# arm-linux-gnueabi-ld -z defs -shared -o 
libfoo.so libfoo.o -lpthread
(devel/maverick/amd64)r...@home:/tmp/a# file *
libfoo.c:  ASCII C program text
libfoo.h:  ASCII text
libfoo.o:  ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
libfoo.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically 
linked, not stripped
(devel/maverick/amd64)r...@home:/tmp/a# apt-cache policy 
binutils-arm-linux-gnueabi
binutils-arm-linux-gnueabi:
  Installed: 2.20.51.20100908-0ubuntu2cross1.52
  Candidate: 2.20.51.20100908-0ubuntu2cross1.52
  Version table:
 *** 2.20.51.20100908-0ubuntu2cross1.52 0
        500 http://archive.ubuntu.com/ubuntu/ maverick-proposed/universe amd64 
Packages
        500 http://archive.ubuntu.com/ubuntu/ maverick-updates/universe amd64 
Packages
        100 /var/lib/dpkg/status
     2.20.51.20100908-0ubuntu2cross1.50 0
        500 http://pl.archive.ubuntu.com/ubuntu/ maverick/universe amd64 
Packages


** Changed in: binutils (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/666276

Title:
  arm-linux-gnueabi-ld doens't search /usr/arm-linux-gnueabi/lib

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to