e2fsprogs: List all libraries explicitly
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 7 Sep 2016 17:25:34 +0000 (10:25 -0700)
committerJohn Crispin <john@phrozen.org>
Thu, 8 Sep 2016 11:40:03 +0000 (13:40 +0200)
e2fsprogs would fail linking with external toolchains which would not be able
to find several dependencies, explicit them.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
package/utils/e2fsprogs/Makefile

index 4e25ab0dc6f414639c451b5d519ecc258a2ed6a6..debc5bae8f8dfa6fec2d1ba5993d9ae497e3e009 100644 (file)
@@ -44,6 +44,7 @@ define Package/libext2fs
 $(call Package/e2fsprogs/Default)
   SECTION:=libs
   CATEGORY:=Libraries
+  DEPENDS:=+libuuid
   TITLE:=ext2/3/4 filesystem library
 endef
 
@@ -138,6 +139,8 @@ define Build/Compile
                BUILDCC="$(HOSTCC)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                LIBBLKID="$(PKG_BUILD_DIR)/lib/libblkid.a -luuid" \
+               ELF_OTHER_LIBS="$(TARGET_LDFLAGS) -luuid" \
+               SYSLIBS="$(TARGET_LDFLAGS) -ldl -L$(PKG_BUILD_DIR)/lib/ -lcom_err" \
                V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1,) \
                all
 endef