summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcc.mk')
-rw-r--r--src/gcc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index 4d68e55..2942246 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -143,3 +143,10 @@ endef
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst mxe-config-opts,--disable-lib32,$($(PKG)_BUILD_mingw-w64))
$(PKG)_BUILD_i686-w64-mingw32 = $(subst mxe-config-opts,--disable-lib64,$($(PKG)_BUILD_mingw-w64))
+
+define $(PKG)_BUILD_$(BUILD)
+ for f in c++ cpp g++ gcov; do \
+ ln -sf "`which $$f`" '$(PREFIX)/bin/$(TARGET)'-$$f ; \
+ done
+ $($(PKG)_POST_BUILD)
+endef