summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-08-27 17:24:06 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-08-27 17:24:06 (GMT)
commit07cdf41da18dc1453a18cf879874ea4b115c030f (patch)
treeae99f5a98b4810999c4f938bdb70615bbe3813d2 /src/gcc.mk
parent76a176ba178d72440fb6504bcf89f5129a7808ed (diff)
downloadmxe-07cdf41da18dc1453a18cf879874ea4b115c030f.zip
mxe-07cdf41da18dc1453a18cf879874ea4b115c030f.tar.gz
mxe-07cdf41da18dc1453a18cf879874ea4b115c030f.tar.bz2
packages binutils dbus gcc gettext libiconv: enable/disable native builds
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