From 1aaaa82901c8b0a50baff06491f0e8e7de1c9af3 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 22 Aug 2008 12:26:07 -0400 Subject: [PATCH] configure.in: Respect LDFLAGS environment variable if passed into configure If the --with-ldopts option is not passed on the command line, respect the LDFLAGS environment variable instead of forcing LDFLAGS to be unset. "configure --help" documents LDFLAGS as part of the standard configure script calling convention. Addresses-Sourceforge-Feature-Request: #1937287 Signed-off-by: "Theodore Ts'o" --- configure | 2 -- configure.in | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configure b/configure index db058bd27..cccc4413e 100755 --- a/configure +++ b/configure @@ -3767,8 +3767,6 @@ if test "${with_ldopts+set}" = set; then withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 echo "${ECHO_T}LDFLAGS is $withval" >&6; } LDFLAGS=$withval -else - LDFLAGS= fi diff --git a/configure.in b/configure.in index 2e0f935e1..da224b45d 100644 --- a/configure.in +++ b/configure.in @@ -144,7 +144,7 @@ AC_ARG_WITH([ldopts], [ --with-ldopts=LDOPTS select linker command line options], AC_MSG_RESULT(LDFLAGS is $withval) LDFLAGS=$withval, -LDFLAGS=)dnl +)dnl AC_SUBST(LDFLAGS) dnl dnl Allow separate `root_prefix' to be specified -- 2.47.3