summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-11-23 08:55:28 +0000
committerobache <obache@pkgsrc.org>2013-11-23 08:55:28 +0000
commit490b32be8fe375c1351feefbd8c9db9412d50def (patch)
treecc2c2670c8ec2b55ac2fd355c975e20eb7263330 /mk/compiler
parente5de2eea43dfae1304eef5f00c001d1161319dbb (diff)
downloadpkgsrc-490b32be8fe375c1351feefbd8c9db9412d50def.tar.gz
Set Interix bultin gcc specific patths to COMPILER_{INCLUDE,LIB}_DIRS.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 5d98d375046..5da0177025a 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.142 2013/07/09 10:13:43 jperkin Exp $
+# $NetBSD: gcc.mk,v 1.143 2013/11/23 08:55:28 obache Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -848,4 +848,9 @@ _GCC_NEEDS_A_FORTRAN= yes
. include "../../mk/compiler/${PKGSRC_FORTRAN}.mk"
.endif
+.if ${OPSYS} == "Interix" && !empty(_GCCBINDIR:M/opt/gcc.*)
+COMPILER_INCLUDE_DIRS= ${_GCCBINDIR:H}/include ${_OPSYS_INCLUDE_DIRS}
+COMPILER_LIB_DIRS= ${_GCCBINDIR:H}/lib ${_OPSYS_LIB_DIRS}
+.endif
+
.endif # COMPILER_GCC_MK