[pacman-dev] [PATCH] Fix a mistake in the cross-compilation fix
mlaenz at gmail.com
Fri Apr 9 15:21:31 CEST 2010
I noticed a serious mistake in my previous patch.
-lssl and -lcrypto were beeing added to $LIBS and
by that they were added as linker flags during compilation.
This overruled the --as-needed flag and causes ssl to be directly
linked to pacman.
Signed-off-by: Matthias Lanzinger <mlaenz at gmail.com>
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index d0fed48..9bb0cd1 100644
@@ -142,8 +142,8 @@ if test "x$internaldownload" = "xyes" ; then
AC_DEFINE([INTERNAL_DOWNLOAD], , [Use internal download library])
# Check for a download library if it was actually requested
- AC_CHECK_LIB([fetch], [fetchParseURL], [AC_SUBST([LIBS], ["-lfetch -lssl -lcrypto -ldl $LIBS"])],
- AC_MSG_ERROR([libfetch is needed to compile with internal download support]), [-lssl -lcrypto -ldl] )
+ AC_CHECK_LIB([fetch], [fetchParseURL], [AC_SUBST([LIBS], ["-lfetch -ldl $LIBS"])],
+ AC_MSG_ERROR([libfetch is needed to compile with internal download support]), [-lcrypto -ldl] )
# Check if libfetch supports conditional GET
# (version >=2.21, struct url has member last_modified)
AC_CHECK_MEMBER(struct url.last_modified, ,
More information about the pacman-dev