Search the SDK path on OSX, otherwise for Xcode 5 certain modules will not

be built, due to the headers not being installed in /usr/include by default.
This commit is contained in:
jperkin 2013-12-12 11:34:23 +00:00
parent 3da04fcc1d
commit 3a563b7816

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.32 2013/11/12 18:57:25 adam Exp $ # $NetBSD: Makefile,v 1.33 2013/12/12 11:34:23 jperkin Exp $
.include "dist.mk" .include "dist.mk"
@ -114,6 +114,12 @@ PLIST.extra-so= yes
INSTALL_UNSTRIPPED= yes INSTALL_UNSTRIPPED= yes
.endif .endif
# For Xcode 5 we need to search the SDK path for headers, otherwise certain
# modules will not be built.
.if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH}/usr/include)
CFLAGS+= -I${OSX_SDK_PATH}/usr/include
.endif
PLIST_VARS+= dll nis no-nis PLIST_VARS+= dll nis no-nis
.if ${OPSYS} == "IRIX" .if ${OPSYS} == "IRIX"
. if ${ABI} == "64" . if ${ABI} == "64"