aboutsummaryrefslogtreecommitdiffstats
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
commite82e17badf0a6287f5cf9bbc9a62b1d15b3e210b (patch)
tree9400cbb042d5f758e2cb0b5b4a5c34db39f39bc8 /include/package.mk
parentaa3ba9aad412b95cd7d9a448b12805eb2c81157b (diff)
downloadupstream-e82e17badf0a6287f5cf9bbc9a62b1d15b3e210b.tar.gz
upstream-e82e17badf0a6287f5cf9bbc9a62b1d15b3e210b.tar.bz2
upstream-e82e17badf0a6287f5cf9bbc9a62b1d15b3e210b.zip
Make the libtool fix more dynamic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8461 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 81296b8446..a13b6a2cee 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