Subject: problem with absolute include paths being killed (MacOS X)
To: None <>
From: Georg Schwarz <>
List: tech-pkg
Date: 03/05/2006 14:43:06
When compiling devel/nspr on Mac OS X -I/Developer/Headers/FlatCarbon  
is added to the gcc compiler options.
However, the pkgsrc wrapper kills that:

     (logic) pop:  -I/Developer/Headers/FlatCarbon
     (logic) to:
     (logic) push:

Consequently, compiling fails since some header files are not found.
I make the following change to devel/nspr/Makefile, and it seems to  
do the trick:

--- Makefile.orig       2006-03-05 14:36:18.000000000 +0100
+++ Makefile    2006-03-05 14:37:44.000000000 +0100
@@ -33,6 +33,10 @@
+.if ${OPSYS} == "Darwin"
+BUILDLINK_PASSTHRU_DIRS+=      /Developer/Headers/FlatCarbon
         cd ${WRKSRC}/.. && autoconf

Is this the correct approach to the issue?
Should it be specified per package of rather globally for all  
packages (and if the latter, where)?
It's probably needed only for MacOS X, not for Darwin without Carbon.  
Is there an elegant way at Makefile level to distinguish between  
these situations?
Is it OK to commit this?

Georg Schwarz  +49 178 8545053