Discussion:
[Buildroot] How can I add extra CFLAGS and LDFLAGS parameters in Busybox ?
Jack
2016-10-05 03:57:26 UTC
Permalink
Hi,

I tried to add new feature on busybox, and I need to call another API
in busybox toolchain.

How can I add additional CFLAGS and LDFLAGS in busybox?

All I tried is, add "-I XXX" at CONFIG_EXTRA_CFLAGS and "-L XXX -lxxx"
at CONFIG_EXTRA_LDFLAGS in busybox config file without modifying
busybox's Makefile. It shows "XXX/XXX/ld: cannot find -lxxx" message.

I already check "-l" library file in "-L" option PATH.
Arnout Vandecappelle
2016-10-05 23:10:43 UTC
Permalink
Post by Jack
I tried to add new feature on busybox, and I need to call another API
in busybox toolchain.
This sounds like something very weird and unlikely. But OK.
Post by Jack
How can I add additional CFLAGS and LDFLAGS in busybox?
All I tried is, add "-I XXX" at CONFIG_EXTRA_CFLAGS and "-L XXX -lxxx"
at CONFIG_EXTRA_LDFLAGS in busybox config file without modifying
busybox's Makefile. It shows "XXX/XXX/ld: cannot find -lxxx" message.
Clearly that worked, or you wouldn't get the -lxxx message.

If you build with 'V=1' on the command line, you'll see the full argument list
of the LD command.

If you want actual help from us, provide all the details, i.e. your busybox
config and the build log (with V=1). Put it in a pastebin to avoid spamming the
list.

Regards,
Arnout
Post by Jack
I already check "-l" library file in "-L" option PATH.
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Loading...