]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
exim: do not link buildconfig with $(LIBS)
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 17 May 2018 20:07:38 +0000 (22:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 17 May 2018 20:16:25 +0000 (22:16 +0200)
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

Fixes:

  http://autobuild.buildroot.net/results/ac78fe18657558b3c12c03c08bf1081d7c06ca85/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/exim/0001-Build-buildconfig-for-the-host.patch

index a926fbdab3b509e7b552530f88626e8bbe624d1b..87eb527974a05b212b06601fa23698eea0eb95ba 100644 (file)
@@ -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