pkgsrc-Bugs archive

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

pkg/49532: Allow devel/nspr to build in 64 bit for Darwin with ABI=64



>Number:         49532
>Category:       pkg
>Synopsis:       Allow devel/nspr to build in 64 bit for Darwin with ABI=64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 03 16:00:00 +0000 2015
>Originator:     Youri Mouton
>Release:        current
>Organization:
>Environment:
Darwin mac.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
>Description:
nss fails to build on 64 bit Darwin because nspr compiles libs in 32 bit mode, even when ABI is set to 64.


>How-To-Repeat:
build with ABI=64 on Darwin
>Fix:
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile
index 3bbe170..7cd0500 100644
--- a/devel/nspr/Makefile
+++ b/devel/nspr/Makefile
@@ -77,6 +77,12 @@ CONFIGURE_ARGS+=	--enable-64bit
 .  endif
 .endif
 
+.if ${OPSYS} == "Darwin"
+.  if defined(ABI) && ${ABI} == "64"
+CONFIGURE_ARGS+=	--enable-64bit
+.  endif
+.endif
+
 .if ${OPSYS} == "Darwin" && exists(/Developer/Headers/FlatCarbon)
 BUILDLINK_PASSTHRU_DIRS+=	Developer/Headers/FlatCarbon
 .endif



Home | Main Index | Thread Index | Old Index