]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
configure.in: Respect LDFLAGS environment variable if passed into configure
authorTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 16:26:07 +0000 (12:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 16:26:07 +0000 (12:26 -0400)
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" <tytso@mit.edu>
configure
configure.in

index db058bd27cbb480deb62319daf5ae6d812bc2313..cccc4413ef03ce364df6493212fed16f36b5bf67 100755 (executable)
--- 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
 
 
index 2e0f935e12bb0a93cf12f621b5a4d57ec8241749..da224b45d33614d31a22d994c38b3fa61bb5a87c 100644 (file)
@@ -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