diff options
| author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2015-04-12 16:21:46 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-06-30 23:07:15 +0200 |
| commit | 00e98e69b4a0134823bcc4b626eafb16e77ae4b1 (patch) | |
| tree | bf69273af92f493f5ef2b3f7fc7febeb5825643b | |
| parent | 4ee0ef4ab576e59fcb741fbbf1a419af76599177 (diff) | |
| download | buildroot-00e98e69b4a0134823bcc4b626eafb16e77ae4b1.tar.gz buildroot-00e98e69b4a0134823bcc4b626eafb16e77ae4b1.zip | |
package/exim: use libnsl only with glibc
Only (e)glibc provides libnsl, uclibc provides only a stub, and musl
doesn't implement it at all.
Fixes compilation using this defconfig
BR2_arm=y
BR2_cortex_a7=y
BR2_STATIC_LIBS=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OPENSSL=y
BR2_PACKAGE_EXIM=y
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| -rw-r--r-- | package/exim/exim.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk index b852793574..8ad0328d34 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -72,6 +72,14 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL endef endif +# only (e)glibc provides libnsl, remove -lnsl for all other toolchains +# http://bugs.exim.org/show_bug.cgi?id=1564 +ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) +define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE + $(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux +endef +endif + define EXIM_CONFIGURE_TOOLCHAIN $(call exim-config-add,CC,$(TARGET_CC)) $(call exim-config-add,CFLAGS,$(TARGET_CFLAGS)) |

