hfsprogs: fix when not linking aginst glibc

Only link with libbsd when we are using GLIBC

Signed-off-by: Matthew McClintock <msm-oss@mcclintock.net>
This commit is contained in:
Matthew McClintock 2017-04-18 12:36:23 -05:00
parent 4dd144c1bd
commit a6357ba2f5
1 changed files with 1 additions and 1 deletions

View File

@ -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