Skip to content

FTBFS with ld --as-needed #7

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions