Fix configure to save LFLAGS, and also set proper defaults for all sensible OSes

Wed, 03 Dec 2008 19:55:57 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 03 Dec 2008 19:55:57 +0000
changeset 536
dfe06eab47c0
parent 535
74f32ac6db40
child 537
c157c1412bda

Fix configure to save LFLAGS, and also set proper defaults for all sensible OSes

configure file | annotate | diff | comparison | revisions
util-src/Makefile file | annotate | diff | comparison | revisions
--- a/configure	Wed Dec 03 19:34:41 2008 +0000
+++ b/configure	Wed Dec 03 19:55:57 2008 +0000
@@ -13,7 +13,8 @@
 IDN_LIB=idn
 OPENSSL_LIB=crypto
 
-CFLAGS="-shared -fPIC"
+CFLAGS="-fPIC"
+LFLAGS="-shared"
 
 # Help
 
@@ -277,6 +278,7 @@
 IDN_LIB=$IDN_LIB
 OPENSSL_LIB=$OPENSSL_LIB
 CFLAGS=$CFLAGS
+LFLAGS=$LFLAGS
 
 EOF
 
--- a/util-src/Makefile	Wed Dec 03 19:34:41 2008 +0000
+++ b/util-src/Makefile	Wed Dec 03 19:55:57 2008 +0000
@@ -28,5 +28,5 @@
 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
 	

mercurial