summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2002-08-06 23:44:36 +0000
committerkristerw <kristerw@pkgsrc.org>2002-08-06 23:44:36 +0000
commit3700725038f93920c71da10699456dc7a08d2895 (patch)
tree6c39f5d36e38e075646a70f8e95b6fa3f91e0a0e /lang
parentb1e763d5bc4b54150f0045b6d2bd03285e446d8e (diff)
downloadpkgsrc-3700725038f93920c71da10699456dc7a08d2895.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