aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-27 00:28:46 +0200
committerKim Alvefur <zash@zash.se>2015-09-27 00:28:46 +0200
commit9a4c2f7e52b68d56c4c883234cc704ef1b045b33 (patch)
tree4bf97a296674cbb6abebeee06d416c7f0f209b06
parent787f6a522a3f655de889a0daa062e2a489eb49ea (diff)
downloadprosody-9a4c2f7e52b68d56c4c883234cc704ef1b045b33.tar.gz
prosody-9a4c2f7e52b68d56c4c883234cc704ef1b045b33.zip
configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS)
-rwxr-xr-xconfigure4
-rw-r--r--util-src/Makefile2
2 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 6a2b57f5..b64c2654 100755
--- a/configure
+++ b/configure
@@ -310,6 +310,8 @@ then
IDNA_LIBS="-l$IDN_LIB"
fi
+OPENSSL_LIBS="-l$OPENSSL_LIB"
+
echo -n "Checking Lua includes... "
lua_h="$LUA_INCDIR/lua.h"
if [ -f "$lua_h" ]
@@ -362,7 +364,7 @@ LUA_BINDIR=$LUA_BINDIR
REQUIRE_CONFIG=$REQUIRE_CONFIG
IDN_LIB=$IDN_LIB
IDNA_LIBS=$IDNA_LIBS
-OPENSSL_LIB=$OPENSSL_LIB
+OPENSSL_LIBS=$OPENSSL_LIBS
CFLAGS=$CFLAGS
LDFLAGS=$LDFLAGS
CC=$CC
diff --git a/util-src/Makefile b/util-src/Makefile
index 5af97f35..5f35b81b 100644
--- a/util-src/Makefile
+++ b/util-src/Makefile
@@ -21,7 +21,7 @@ clean:
encodings.so: LDLIBS+=$(IDNA_LIBS)
-hashes.so: LDLIBS+=-l$(OPENSSL_LIB)
+hashes.so: LDLIBS+=$(OPENSSL_LIBS)
%.so: %.o
$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)