Subject: problem with absolute include paths being killed (MacOS X)
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
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 @@
INSTALLATION_DIRS= bin
+.if ${OPSYS} == "Darwin"
+BUILDLINK_PASSTHRU_DIRS+= /Developer/Headers/FlatCarbon
+.endif
+
pre-configure:
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 http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053