pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python27 python27: fix build on macOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/1314b80f46f6
branches: trunk
changeset: 379263:1314b80f46f6
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri May 13 17:32:37 2022 +0000
description:
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.
diffstat:
lang/python27/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e8e814485c6f -r 1314b80f46f6 lang/python27/Makefile
--- a/lang/python27/Makefile Fri May 13 17:06:01 2022 +0000
+++ b/lang/python27/Makefile Fri May 13 17:32:37 2022 +0000
@@ -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 @@
# 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