mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Fix configure to save LFLAGS, and also set proper defaults for all sensible OSes
This commit is contained in:
parent
fd7b0786e5
commit
87703412c1
2 changed files with 4 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue