[m-rev.] diff: set deployment target > 10.4 on Snow Leopard

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Oct 19 18:33:57 AEDT 2009


Bump the deployment target number for Snow Leopard.

configure.in:
 	For Mac OS 10.6, the MACOSX_DEPLOYMENT_TARGET environment variable
 	needs to be > 10.4.

Julien.

Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.549
diff -u -r1.549 configure.in
--- configure.in	14 Oct 2009 13:04:59 -0000	1.549
+++ configure.in	19 Oct 2009 17:33:22 -0000
@@ -4095,8 +4095,21 @@
                  # The MACOSX_DEPLOYMENT_TARGET environment variable
                  # needs to be set when linking with two level namespaces
                  # so we can use the `-undefined dynamic_lookup' option.
+                #
+                # On 10.6, the deployment target needs to be at least 10.4.
+                # For earlier versions of Mac OS X we use 10.3.
+                case "$host" in
+                    *apple*darwin*10*)
+                        DEPLOYMENT_TARGET="10.4"
+                    ;;
+ 
+                    *)
+                        DEPLOYMENT_TARGET="10.3"
+                    ;;
+                esac
+
                  SET_MACOSX_DEPLOYMENT_TARGET="\
-                    MACOSX_DEPLOYMENT_TARGET=10.3; \
+                    MACOSX_DEPLOYMENT_TARGET=$DEPLOYMENT_TARGET; \
                      export MACOSX_DEPLOYMENT_TARGET"
                  AC_SUBST(SET_MACOSX_DEPLOYMENT_TARGET)
                  LINK_SHARED_OBJ="$GCC_PROG -multiply_defined suppress \

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list