diff --git a/utils/hfsprogs/Makefile b/utils/hfsprogs/Makefile index 9c44a3558..6b907523c 100644 --- a/utils/hfsprogs/Makefile +++ b/utils/hfsprogs/Makefile @@ -29,7 +29,7 @@ define Package/hfsprogs/Default SECTION:=utils CATEGORY:=Utilities SUBMENU:=Filesystem - DEPENDS:=+libopenssl + DEPENDS:=+libopenssl +USE_GLIBC:libbsd endef define Package/hfsfsck @@ -59,7 +59,8 @@ define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ -f Makefile.lnx \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS+="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1" \ + 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" \ all endef