From: Kim Alvefur Date: Sat, 26 Sep 2015 21:42:46 +0000 (+0200) Subject: configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=dc294a72b717166e9c7781106e6b9477389799e9;p=prosody.git configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure --- diff --git a/configure b/configure index 53ee3757..6a2b57f5 100755 --- a/configure +++ b/configure @@ -112,6 +112,7 @@ do 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 diff --git a/util-src/Makefile b/util-src/Makefile index d99c9515..8cf3b876 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -28,17 +28,14 @@ clean: 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)