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
Original issue reported on code.google.com by
li...@slavino.sk
on 2 May 2013 at 10:08Attachments: