]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: report and use LDFLAGS in tools/config-gen
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 15:37:38 +0000 (17:37 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 15:37:38 +0000 (17:37 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tools/config-gen

index 1fd58a02bd9cf7a373908335de3624d86e9bfefb..e1d647453ac3f0aeb9e6caa7e4f3cf5d17a174fa 100755 (executable)
@@ -35,15 +35,23 @@ echo "Configure options:"
 for x in $opts; do
        echo "  $x"
 done
+echo
+
 if [ -n "$CFLAGS" ]; then
-       echo "CFLAGS:   $CFLAGS"
+       echo "CFLAGS:   $CFLAGS"
        CFLAGS="$CFLAGS"
        export CFLAGS
+       echo
+fi
+if [ -n "$LDFLAGS" ]; then
+       echo "LDFLAGS:  $LDFLAGS"
+       LDFLAGS="$LDFLAGS"
+       export LDFLAGS
+       echo
 fi
 
 if [ ! -f ./configure ]; then
        ./autogen.sh
 fi
 
-echo
 ./configure $opts