aboutsummaryrefslogtreecommitdiffstats
path: root/package/uclibc++
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-08-01 12:01:18 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-08-01 12:01:18 +0000
commitc8e80b90e2cad10c1326df1de54056fc317240c4 (patch)
treee54609106d4eb00bd10c2bde70435593b5014591 /package/uclibc++
parentdf6b8c9431645d6a46576477e7b02462893c1ecf (diff)
downloadupstream-c8e80b90e2cad10c1326df1de54056fc317240c4.tar.gz
upstream-c8e80b90e2cad10c1326df1de54056fc317240c4.tar.bz2
upstream-c8e80b90e2cad10c1326df1de54056fc317240c4.zip
[package] uclibc++: stage g++-uc wrappers in $(TOOLCHAIN_DIR)
Since we are overriding TARGET_CXX with the g++-uc wrapper when we use cmake it expects to find g++-uc in the TOOLCHAIN_DIR. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32928 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uclibc++')
-rw-r--r--package/uclibc++/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/package/uclibc++/Makefile b/package/uclibc++/Makefile
index ac5032b55d..c8bfc1f3bc 100644
--- a/package/uclibc++/Makefile
+++ b/package/uclibc++/Makefile
@@ -70,16 +70,16 @@ endef
define Build/InstallDev
$(INSTALL_DIR) $(2)/bin $(1)/usr/include/uClibc++ $(1)/usr/lib
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/g++-uc $(2)/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/g++-uc $(TOOLCHAIN_DIR)/bin/
$(CP) $(PKG_INSTALL_DIR)/include/* $(1)/usr/include/uClibc++/
$(CP) $(PKG_INSTALL_DIR)/lib/libuClibc++*.{a,so}* $(1)/usr/lib/
- $(SED) 's|-I/include/|-I$(STAGING_DIR)/usr/include/uClibc++/|g' $(2)/bin/g++-uc
- $(SED) 's|-L/lib/|-L$(STAGING_DIR)/usr/lib/|g' $(2)/bin/g++-uc
+ $(SED) 's|-I/include/|-I$(STAGING_DIR)/usr/include/uClibc++/|g' $(TOOLCHAIN_DIR)/bin/g++-uc
+ $(SED) 's|-L/lib/|-L$(STAGING_DIR)/usr/lib/|g' $(TOOLCHAIN_DIR)/bin/g++-uc
# add another wrapper which links against both uClibc++ and libstdc++
- $(INSTALL_BIN) $(2)/bin/g++-uc $(2)/bin/g++-uc+std
- $(SED) 's|^WRAPPER_INCLUDEDIR=.*||g' $(2)/bin/g++-uc+std
- $(SED) 's|-luClibc++|-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic|g' $(2)/bin/g++-uc+std
- $(SED) 's|-nostdinc++||g' $(2)/bin/g++-uc+std
+ $(INSTALL_BIN) $(TOOLCHAIN_DIR)/bin/g++-uc $(TOOLCHAIN_DIR)/bin/g++-uc+std
+ $(SED) 's|^WRAPPER_INCLUDEDIR=.*||g' $(TOOLCHAIN_DIR)/bin/g++-uc+std
+ $(SED) 's|-luClibc++|-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic|g' $(TOOLCHAIN_DIR)/bin/g++-uc+std
+ $(SED) 's|-nostdinc++||g' $(TOOLCHAIN_DIR)/bin/g++-uc+std
endef
define Package/uclibcxx/install