configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure
authorKim Alvefur <zash@zash.se>
Sat, 26 Sep 2015 23:42:46 +0200
changeset 6881 53a74a80c91a
parent 6880 020ededc84a6
child 6882 187112928174
configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure
configure
util-src/Makefile
--- a/configure	Sat Sep 26 23:38:09 2015 +0200
+++ b/configure	Sat Sep 26 23:42:46 2015 +0200
@@ -112,6 +112,7 @@
       	LUA_INCDIR_SET=yes
       	LUA_LIBDIR=/usr/local/lib
       	LUA_LIBDIR_SET=yes
+      	CFLAGS="$CFLAGS -mmacosx-version-min=10.3"
       	LDFLAGS="-bundle -undefined dynamic_lookup"
     	fi
       if [ "$OSTYPE" = "linux" ]; then
--- a/util-src/Makefile	Sat Sep 26 23:38:09 2015 +0200
+++ b/util-src/Makefile	Sat Sep 26 23:42:46 2015 +0200
@@ -28,17 +28,14 @@
 	rm -f $(ALL)
 
 encodings.so: encodings.o
-	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
 	$(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS)
 
 hashes.so: hashes.o
-	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
 	$(CC) -o $@ $< $(LDFLAGS) -l$(OPENSSL_LIB)
 
 .c.o:
 	$(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o $@ $<
 
 .o.so:
-	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
 	$(LD) -o $@ $< $(LDFLAGS)