aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
-rw-r--r--util-src/Makefile2
2 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 5de9f67a..8eb7b367 100755
--- a/configure
+++ b/configure
@@ -13,7 +13,8 @@ LUA_LIBDIR="/usr/lib"
IDN_LIB=idn
OPENSSL_LIB=crypto
-CFLAGS="-shared -fPIC"
+CFLAGS="-fPIC"
+LFLAGS="-shared"
# Help
@@ -277,6 +278,7 @@ REQUIRE_CONFIG=$REQUIRE_CONFIG
IDN_LIB=$IDN_LIB
OPENSSL_LIB=$OPENSSL_LIB
CFLAGS=$CFLAGS
+LFLAGS=$LFLAGS
EOF
diff --git a/util-src/Makefile b/util-src/Makefile
index 5dcd65d2..a325a0d6 100644
--- a/util-src/Makefile
+++ b/util-src/Makefile
@@ -28,5 +28,5 @@ encodings.so: encodings.o
hashes.o: hashes.c
gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c
hashes.so: hashes.o
- export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o hashes.so hashes.o -L/usr/local/lib -lcrypto -lssl
+ export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(CFLAGS) -o hashes.so hashes.o -L/usr/local/lib -lcrypto -lssl