MACOSX_DEPLOYMENT_TARGET=10.10 confuses configure

Marcus Calhoun-Lopez marcuscalhounlopez at mac.com
Sun Sep 14 16:05:47 UTC 2014


The MacPorts project was having problems compiling gmp on Mac OS X 10.10.
See https://trac.macports.org/ticket/44596 for the gory details.

The problem seemed to be that the configure script thought that 10.10 (Yosemite) was 10.1 (Puma).
The fix was to change the aclocal.m4 file and the resulting configure script.
See patch below.

This seems be related to https://gmplib.org/list-archives/gmp-bugs/2014-June/003499.html, but the fix found
in https://gmplib.org/list-archives/gmp-bugs/2014-July/003502.html did not seem to contain any change to the aclocal.m4 file.

I am sorry if this is insufficient information, but I do not have Yosemite myself.
I am the maintainer of gmp for the MacPorts project.

Thanks,
Marcus

--- aclocal.m4.orig
+++ aclocal.m4
@@ -1066,7 +1066,7 @@ _LT_EOF
       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[[012]]*)
+	10.[[012]][[,.]]*)
 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 	10.*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;




More information about the gmp-bugs mailing list