pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/python27
Module Name: pkgsrc
Committed By: tnn
Date: Fri May 13 17:32:37 UTC 2022
Modified Files:
pkgsrc/lang/python27: Makefile
Log Message:
python27: fix build on macOS
We must pass -isysroot with the explicit path to the MacOSX SDK in CFLAGS.
Without this setup.py fails to find builtin zlib and bzip2.
See comment in ${WRKSRC}/Lib/distutils/unixccompiler.py:find_library_file()
for why this is necessary.
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 pkgsrc/lang/python27/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/python27/Makefile
diff -u pkgsrc/lang/python27/Makefile:1.99 pkgsrc/lang/python27/Makefile:1.100
--- pkgsrc/lang/python27/Makefile:1.99 Fri Feb 25 22:41:32 2022
+++ pkgsrc/lang/python27/Makefile Fri May 13 17:32:37 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.99 2022/02/25 22:41:32 gutteridge Exp $
+# $NetBSD: Makefile,v 1.100 2022/05/13 17:32:37 tnn Exp $
.include "dist.mk"
@@ -104,7 +104,7 @@ PLIST.extra-so= yes
# modules will not be built.
.if ${OPSYS} == "Darwin"
. if exists(${OSX_SDK_PATH}/usr/include)
-CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
+CFLAGS+= -isysroot ${OSX_SDK_PATH:Q}
. endif
. if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework)
PLIST.qt= yes
Home |
Main Index |
Thread Index |
Old Index