Re: Dhcpcd 6.11.5 - did not receive 2 announcements after 3 unanswered probes (as RFC 5227)
Roy Marples
Fri Jan 11 17:47:22 2019
On 11/01/2019 14:37, Joakim Tjernlund wrote:
Or we can stop adding so many knobs and just use CFLAGS?
Example Makefile directive - no idea how to do this in bitbake.
CFLAGS+= --sysroot=/x/y/x
That won't work for true autotools systems, other parts needs it too(like libtool)
In you case it could work, if you use gcc to link. Otherwise you need to
pass it to LDFLAGS as well.
This is not autotools, libtool or anything else.
It "pretends" to be GNU configure just for ease of use in most packaging
systems.
The *sole* requirements to build dhcpcd are:
POSIX shell and userland for configure
Makefile compliant build program to build it
C-99 compiler
Heck, older verions of dhcpcd *just* had a Makefile without any
configure and cross compiled just fine.
Luckily, the Makefile supports both CFLAGS and LDFLAGS for this, which I
would expect to work with pretty much every build system.
In this exact case though, dhcpcd is linked with $CC (which may or may
not be gcc)
Rpy
Archive administrator: postmaster@marples.name