HalfHour / libnxt

Automatically exported from code.google.com/p/libnxt
GNU General Public License v2.0
0 stars 0 forks source link

FTBFS with ld --as-needed #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
libnxt fails to build on Debian when ld defaults to --as-needed because as it 
passes the libraries to the linker in the wrong order.

Build log:

gcc -o fwflash -z relro main_fwflash.o -L. -lusb -lnxt
../libnxt.a(lowlevel.o): In function `nxt_init':
/build/buildd/libnxt-0.3/lowlevel.c:49: undefined reference to `usb_init'
../libnxt.a(lowlevel.o): In function `nxt_find':
/build/buildd/libnxt-0.3/lowlevel.c:60: undefined reference to `usb_find_busses'
/build/buildd/libnxt-0.3/lowlevel.c:61: undefined reference to 
`usb_find_devices'
/build/buildd/libnxt-0.3/lowlevel.c:63: undefined reference to `usb_get_busses'
[...]

Original issue reported on code.google.com by li...@slavino.sk on 2 May 2013 at 10:08

Attachments: