From bd69290639947d1cafd4134523542685e5564946 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sun, 5 Jan 2014 12:54:26 +0000 Subject: [PATCH] Don't always add $(OPENSSL_LIBS) to LIBS, this makes the debian dependency stuff complain --- configure | 1 - configure.ac | 1 - src/main/radiusd.mk | 2 +- src/main/radsniff.mk.in | 2 +- src/main/unittest.mk | 4 ++-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 21610f7461..c85aa48c93 100755 --- a/configure +++ b/configure @@ -7068,7 +7068,6 @@ $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h OPENSSL_LIBS="-L$OPENSSL_LIB_DIR" fi OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto" - LIBS="$OPENSSL_LIBS $LIBS" else diff --git a/configure.ac b/configure.ac index eabe047d60..f0e1e3e28b 100644 --- a/configure.ac +++ b/configure.ac @@ -842,7 +842,6 @@ if test "x$WITH_OPENSSL" = xyes; then OPENSSL_LIBS="-L$OPENSSL_LIB_DIR" fi OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto" - LIBS="$OPENSSL_LIBS $LIBS" ], [ AC_MSG_FAILURE([failed linking to libssl]) diff --git a/src/main/radiusd.mk b/src/main/radiusd.mk index 9a33539f90..0a8c90ed13 100644 --- a/src/main/radiusd.mk +++ b/src/main/radiusd.mk @@ -10,7 +10,7 @@ endif SRC_CFLAGS := -DHOSTINFO=\"${HOSTINFO}\" TGT_INSTALLDIR := ${sbindir} -TGT_LDLIBS := $(LIBS) $(LCRYPT) +TGT_LDLIBS := $(LIBS) $(OPENSSL_LIBS) $(LCRYPT) TGT_PREREQS := libfreeradius-server.a libfreeradius-radius.a # Libraries can't depend on libraries (oops), so make the binary diff --git a/src/main/radsniff.mk.in b/src/main/radsniff.mk.in index bee870432b..03b9abd144 100644 --- a/src/main/radsniff.mk.in +++ b/src/main/radsniff.mk.in @@ -9,4 +9,4 @@ endif SOURCES := radsniff.c TGT_PREREQS := libfreeradius-radius.a -TGT_LDLIBS := $(LIBS) $(OPENSSL_LIBS) $(PCAP_LIBS) +TGT_LDLIBS := $(LIBS) $(PCAP_LIBS) diff --git a/src/main/unittest.mk b/src/main/unittest.mk index 7cbcf06225..fe5e08ca32 100644 --- a/src/main/unittest.mk +++ b/src/main/unittest.mk @@ -10,8 +10,8 @@ SOURCES += cb.c tls.c endif SRC_CFLAGS := -DHOSTINFO=\"${HOSTINFO}\" -TGT_INSTALLDIR := -TGT_LDLIBS := $(LIBS) $(LCRYPT) +TGT_INSTALLDIR := +TGT_LDLIBS := $(LIBS) $(OPENSSL_LIBS) $(LCRYPT) TGT_PREREQS := libfreeradius-server.a libfreeradius-radius.a # Libraries can't depend on libraries (oops), so make the binary -- 2.47.3