From: Theodore Ts'o Date: Fri, 22 Aug 2008 16:26:07 +0000 (-0400) Subject: configure.in: Respect LDFLAGS environment variable if passed into configure X-Git-Tag: v1.41.1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aaaa82901c8b0a50baff06491f0e8e7de1c9af3;p=thirdparty%2Fe2fsprogs.git 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" --- 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