summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorkristerw <kristerw>2002-08-06 23:44:36 +0000
committerkristerw <kristerw>2002-08-06 23:44:36 +0000
commitbf5631248bc6fe06c3ba056ed8c5558c68b9cd7a (patch)
tree6c39f5d36e38e075646a70f8e95b6fa3f91e0a0e /lang
parentf44987da1d7327a147f983a5eebec027f5b78244 (diff)
downloadpkgsrc-bf5631248bc6fe06c3ba056ed8c5558c68b9cd7a.tar.gz
Make sure that the compiler finds the non-standard includefiles normally
found on NetBSD (i.e. FlexLexer.h) This corrects the issue in the remark to my closing of pkg/17638.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index ae970cac20f..4586ed5c54d 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2002/05/14 14:01:33 yyamano Exp $
+# $NetBSD: Makefile,v 1.43 2002/08/06 23:44:36 kristerw Exp $
# Make sure that the version number in "Makefile.gcc" matches this.
DISTNAME= gcc-2.95.3
@@ -77,6 +77,10 @@ pre-install:
.if (${OPSYS} != SunOS)
post-install:
+. if exists(/usr/include/g++/FlexLexer.h)
+ ${LN} -s /usr/include/g++/FlexLexer.h \
+ ${PREFIX}/${PKGNAME}/include/g++-3/FlexLexer.h
+. endif
${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc
${LN} -s gcc ${PREFIX}/${PKGNAME}/bin/cc
${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk