Changeset

542:c9dbfcf21846

Automated merge with http://waqas.ath.cx/
author Matthew Wild <mwild1@gmail.com>
date Thu, 04 Dec 2008 15:48:19 +0000
parents 541:3521e0851c9e (current diff) 538:26d000f25939 (diff)
children 543:cf6e19ea1cbc 546:1e65f64dfabf
files
diffstat 3 files changed, 16 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgtags	Thu Dec 04 15:48:19 2008 +0000
@@ -0,0 +1,1 @@
+c157c1412bda91b6e075e70875b4605e3e20b290 0.1.0
--- a/configure	Thu Dec 04 20:16:30 2008 +0500
+++ b/configure	Thu Dec 04 15:48:19 2008 +0000
@@ -13,7 +13,8 @@
 IDN_LIB=idn
 OPENSSL_LIB=crypto
 
-CFLAGS="-shared -fPIC"
+CFLAGS="-fPIC"
+LFLAGS="-shared"
 
 # Help
 
@@ -125,7 +126,8 @@
 	LUA_INCDIR_SET=yes	
 	LUA_LIBDIR=/usr/local/lib
 	LUA_LIBDIR_SET=yes
-	CFLAGS="-bundle -Wl,-undefined,dynamic_lookup"
+	CFLAGS=""
+	LFLAGS="-bundle -undefined dynamic_lookup"
 	fi	
 fi
 
@@ -276,6 +278,7 @@
 IDN_LIB=$IDN_LIB
 OPENSSL_LIB=$OPENSSL_LIB
 CFLAGS=$CFLAGS
+LFLAGS=$LFLAGS
 
 EOF
 
--- a/util-src/Makefile	Thu Dec 04 20:16:30 2008 +0500
+++ b/util-src/Makefile	Thu Dec 04 15:48:19 2008 +0000
@@ -12,16 +12,21 @@
 all: encodings.so hashes.so
 
 install: encodings.so hashes.so
-	install -s *.so ../util/
+	install *.so ../util/
 	
 
 clean:
 	rm -f *.so
 	rm -f ../util/*.so
 
-encodings.so: encodings.c
-	gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so
+encodings.o: encodings.c
+	gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.c
+encodings.so: encodings.o
+	export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o encodings.so encodings.o -L/usr/local/lib -llua$(LUA_SUFFIX) -lcrypto -lidn
+	
 
-hashes.so: hashes.c
-	gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so
+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 -llua$(LUA_SUFFIX) -lcrypto -lssl