unrar: Properly pass LDFLAGS
authorFlorian Fainelli <redacted>
Sun, 2 Apr 2017 18:32:19 +0000 (11:32 -0700)
committerFlorian Fainelli <redacted>
Sun, 2 Apr 2017 18:32:19 +0000 (11:32 -0700)
External toolchains don't automatically have STAGING_DIR in their
default search path, so make sure we pass TARGET_LDFLAGS down. Since the
unrar makefile does not allow overriding, we also need to preserve the
original LDFLAGS which include lpthread.

Signed-off-by: Florian Fainelli <redacted>
utils/unrar/Makefile

index 36d37b3db011515e89b06650bf45740d2777dd66..b3b70f22f2c6910fb4af879983a1f79d39f0963f 100644 (file)
@@ -58,6 +58,9 @@ define Package/libunrar/description
   archives
 endef
 
+MAKE_FLAGS += \
+       LDFLAGS="$(TARGET_LDFLAGS) -lpthread"
+
 ifeq ($(BUILD_VARIANT),lib)
 define Build/Compile
        $(call Build/Compile/Default,lib)
git clone https://git.99rst.org/PROJECT