CC: uclibc++: make g++-uc* wrappers relocatable
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jul 2015 13:38:12 +0000 (13:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jul 2015 13:38:12 +0000 (13:38 +0000)
commit3c5e9dfcc93f0fa1cdad4fce18b14820c0d1c1d1
tree3b1261881fac33a5bda5f5505e9b9e9c41d38926
parent354e275d05dc2cfe4a948aa6714454b349f4e56b
CC: 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>
Backport of r46162

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46163 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/libs/uclibc++/Makefile