summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorwiz <wiz>2016-08-20 09:23:42 +0000
committerwiz <wiz>2016-08-20 09:23:42 +0000
commit636950b9f72bf65ae9e72c14fe6eed2bf274f515 (patch)
tree5af05fab366c3f32852d9ee8a3c6cf0075dc227d /cross
parent88c3d77828550740ca88e078b3ee36155e60b051 (diff)
downloadpkgsrc-636950b9f72bf65ae9e72c14fe6eed2bf274f515.tar.gz
Make sure no precompiled headers are installed with any gcc version.
From Matthew Mondor in PR 51396.
Diffstat (limited to 'cross')
-rw-r--r--cross/mingw-gcc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/cross/mingw-gcc/Makefile b/cross/mingw-gcc/Makefile
index 362e4225b6e..7a713c4f05e 100644
--- a/cross/mingw-gcc/Makefile
+++ b/cross/mingw-gcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2016/06/19 16:23:59 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2016/08/20 09:23:42 wiz Exp $
DISTNAME= mingw-gcc-${DIST_VERSION}
PKGNAME= ${DISTNAME:S/-${DIST_VERSION}/-${GCC_VERSION}/}
@@ -42,6 +42,8 @@ post-install:
cd ${DESTDIR}${PREFIX}/cross && ${LN} -fs bin/${MINGW_TARGET}-gcc ${MINGW_TARGET}/bin/gcc
cd ${DESTDIR}${PREFIX}/cross && ${LN} -fs bin/${MINGW_TARGET}-c++ ${MINGW_TARGET}/bin/c++
cd ${DESTDIR}${PREFIX}/cross && ${LN} -fs bin/${MINGW_TARGET}-g++ ${MINGW_TARGET}/bin/g++
+ # Remove any potentially built C++ precompiled header files (depends on toolchain used)
+ ${RM} -f ${DESTDIR}${PREFIX}/cross/include/c++/${GCC_VERSION}/${MINGW_TARGET}/bits/stdc++.h.gch/*.gch
.include "../../cross/mingw/Makefile.common"
.include "../../cross/mingw-binutils/buildlink3.mk"