Make the libtool fix more dynamic

SVN-Revision: 8461
This commit is contained in:
Florian Fainelli 2007-08-22 09:13:42 +00:00
parent 36fa8ff606
commit c994e41757

View file

@ -111,9 +111,9 @@ define Build/Fix/libtool/rpath
endef endef
# prevent libtool from linking against host development libraries # prevent libtool from linking against host development libraries
define Build/Fix/libtool/libdir define Build/Fix/libtool
find $(PKG_BUILD_DIR) -name '*.la' | xargs \ 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 endef
define Build/Prepare define Build/Prepare