On macOS (Catalina, at least), python37 and python38 fail in _uuid.so

with `ld: library not found for -luuid` when building with native
libuuid. Rather than trying to fix Python's detection logic, just make
this mistake impossible for anyone using macOS native libuuid. Building
with pkgsrc libuuid continues to work fine.
This commit is contained in:
schmonz 2020-08-26 13:47:14 +00:00
parent e067f22d3e
commit e2c73d2db1

View file

@ -1,4 +1,4 @@
# $NetBSD: builtin.mk,v 1.11 2019/11/03 10:39:19 rillig Exp $
# $NetBSD: builtin.mk,v 1.12 2020/08/26 13:47:14 schmonz Exp $
BUILTIN_PKG:= libuuid
@ -79,6 +79,10 @@ BUILDLINK_PASSTHRU_DIRS+= /lib
LIBUUID_LDADD= -L/lib
. endif
. if ${OPSYS} == "Darwin"
BUILDLINK_TRANSFORM+= rm:-luuid
. endif
libuuid-fake-pc:
${RUN} \
${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \