Changeset

6886:27f5a76e3fa5

configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS)
author Kim Alvefur <zash@zash.se>
date Sun, 27 Sep 2015 00:28:46 +0200
parents 6885:07078f762061
children 6887:da38775bda82
files configure util-src/Makefile
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Sep 27 00:16:34 2015 +0200
+++ b/configure	Sun Sep 27 00:28:46 2015 +0200
@@ -310,6 +310,8 @@
 	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 @@
 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
--- a/util-src/Makefile	Sun Sep 27 00:16:34 2015 +0200
+++ b/util-src/Makefile	Sun Sep 27 00:28:46 2015 +0200
@@ -21,7 +21,7 @@
 
 encodings.so: LDLIBS+=$(IDNA_LIBS)
 
-hashes.so: LDLIBS+=-l$(OPENSSL_LIB)
+hashes.so: LDLIBS+=$(OPENSSL_LIBS)
 
 %.so: %.o
 	$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)