From: Matthew McClintock Date: Tue, 18 Apr 2017 17:36:23 +0000 (-0500) Subject: hfsprogs: fix when not linking aginst glibc X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a6357ba2f5e1dd5f7cec92a703bdb907fe297c7a;p=openwrt-packages.git hfsprogs: fix when not linking aginst glibc Only link with libbsd when we are using GLIBC Signed-off-by: Matthew McClintock --- diff --git a/utils/hfsprogs/Makefile b/utils/hfsprogs/Makefile index 6b907523c..b260c9077 100644 --- a/utils/hfsprogs/Makefile +++ b/utils/hfsprogs/Makefile @@ -60,7 +60,7 @@ define Build/Compile -f Makefile.lnx \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS+="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(PKG_BUILD_DIR)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1" \ - LDFLAGS+="$(TARGET_LDFLAGS) -lbsd" \ + LDFLAGS+="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_GLIBC),-lbsd)" \ all endef