uclibc++: make g++-uc* wrappers relocatable
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 3 Jul 2015 13:33:05 +0000 (13:33 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 3 Jul 2015 13:33:05 +0000 (13:33 +0000)
commit0758ab9c3e69f5788bb4106fa9ebaf39e31d452a
treea93fb68c06e000caa83bbf60bebed6694fa37c92
parent91e9ede64482f02ff26b06df9c2e3ee0d7f906b7
uclibc++: make g++-uc* wrappers relocatable

The g++-uc wrapper hardcodes $(STAGING_DIR) and $(TOOLCHAIN_DIR) paths which
will not work outside of the original build environment.

Replace the hardcoded staging_dir occurences with paths relative to the
$STAGING_DIR environment variable to make the g++-uc* wrappers usable in an
SDK environment.

Fixes the libdb47 build failure reported at
  https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032455.html

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46162 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/libs/uclibc++/Makefile