pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/dar Do not build static binaries on macOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/905d061f5a20
branches:  trunk
changeset: 397896:905d061f5a20
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Jul 06 16:29:10 2019 +0000

description:
Do not build static binaries on macOS.

Reported by Clement Bouvier in PR pkg/54352.
I did not try a build on Darwin as I no longer own a Mac.

diffstat:

 archivers/dar/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 735ddcec7360 -r 905d061f5a20 archivers/dar/Makefile
--- a/archivers/dar/Makefile    Sat Jul 06 16:13:58 2019 +0000
+++ b/archivers/dar/Makefile    Sat Jul 06 16:29:10 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2018/07/04 13:40:07 jperkin Exp $
+# $NetBSD: Makefile,v 1.55 2019/07/06 16:29:10 bsiegert Exp $
 
 DISTNAME=      dar-2.4.13
 PKGREVISION=   1
@@ -93,8 +93,9 @@
 
 .include "../../mk/bsd.fast.prefs.mk"
 
-## Build a static binary with threads is currently broken with glibc.
-.if ${OPSYS} == "Linux" && !empty(PKG_OPTIONS:Mthreads)
+# Building a static binary with threads is currently broken with glibc.
+# Building a static binary is not supported on macOS.
+.if (${OPSYS} == "Linux" && !empty(PKG_OPTIONS:Mthreads)) || ${OPSYS} == "Darwin"
 SUBST_CLASSES+=                static
 SUBST_STAGE.static=    pre-configure
 SUBST_MESSAGE.static=  Changing -all-static to -static



Home | Main Index | Thread Index | Old Index