[Buildroot] [git commit branch/2018.02.x] exim: do not link buildconfig with $(LIBS)

Peter Korsgaard peter at korsgaard.com
Mon Jun 11 20:37:15 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=f8d62365739143ce3120e241be6953c7f6d1248e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x

The existing patch 0001-Build-buildconfig-for-the-host.patch changes
the exim build system to use the host compiler to build the
"buildconfig" program instead of the cross-compiler.

However, it still uses $(LIBS) which lists the target libraries to
link with, which shouldn't be used. Since buildconfig doesn't use any
library beyond the C library, we can simply drop using $(LIBS).

This will fix build failures of exim on Fedora 28, where libnsl is no
longer provided by the C library, causing build failures such as:

/usr/bin/gcc buildconfig.c
/usr/bin/ld: cannot find -lnsl



Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit b872d829d092059ae8d5e86115d1515164d01a74)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/exim/0001-Build-buildconfig-for-the-host.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/exim/0001-Build-buildconfig-for-the-host.patch b/package/exim/0001-Build-buildconfig-for-the-host.patch
index a926fbdab3..87eb527974 100644
--- a/package/exim/0001-Build-buildconfig-for-the-host.patch
+++ b/package/exim/0001-Build-buildconfig-for-the-host.patch
@@ -17,7 +17,7 @@ index 29a6ad3..420ba60 100644
 -	@echo "$(CC) buildconfig.c"
 -	$(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
 +	@echo "$(HOSTCC) buildconfig.c"
-+	$(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
++	$(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c
  # Target for the exicyclog utility script

More information about the buildroot mailing list