MACOSX_DEPLOYMENT_TARGET=10.10 confuses configure

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

The MacPorts project was having problems compiling gmp on Mac OS X 10.10.
See 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, but the fix found
in 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.


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

More information about the gmp-bugs mailing list