Software /
code /
prosody
Changeset
6878:53a74a80c91a
configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 26 Sep 2015 23:42:46 +0200 |
parents | 6877:020ededc84a6 |
children | 6879:187112928174 |
files | configure util-src/Makefile |
diffstat | 2 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)