summaryrefslogtreecommitdiff
path: root/include/package.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-22 09:13:42 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-22 09:13:42 +0000
commitc994e41757e4953c0472de94c798123a8bf911b8 (patch)
treeee75c5c1bc0a250681903a0a3417c8359e079844 /include/package.mk
parent36fa8ff606d05f6d755275c16f931ba270e968aa (diff)
downloadmtk-20170518-c994e41757e4953c0472de94c798123a8bf911b8.zip
mtk-20170518-c994e41757e4953c0472de94c798123a8bf911b8.tar.gz
mtk-20170518-c994e41757e4953c0472de94c798123a8bf911b8.tar.bz2
Make the libtool fix more dynamic
SVN-Revision: 8461
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/package.mk b/include/package.mk
index 81296b8..a13b6a2 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -111,9 +111,9 @@ define Build/Fix/libtool/rpath
endef
# prevent libtool from linking against host development libraries
-define Build/Fix/libtool/libdir
+define Build/Fix/libtool
find $(PKG_BUILD_DIR) -name '*.la' | xargs \
- $(SED) "s,^libdir='/usr/lib',libdir='$(STAGING_DIR)/usr/lib',g"
+ $(SED) "s,^$(1)='/usr/lib',$(1)='$(STAGING_DIR)/usr/lib',g"
endef
define Build/Prepare