aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-11-30 03:34:14 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-12-03 07:53:07 -0300
commit35332bd99808335b79c01845b3dabf0d3e21fee1 (patch)
tree332a1c9719cb77e0044a2e9b1e31c635752d163e /configure
parentbuild: actually set LDFLAGS and LIBS in makefiles (diff)
downloadfirejail-35332bd99808335b79c01845b3dabf0d3e21fee1.tar.gz
firejail-35332bd99808335b79c01845b3dabf0d3e21fee1.tar.zst
firejail-35332bd99808335b79c01845b3dabf0d3e21fee1.zip
build: move library flags from EXTRA_LDFLAGS to LIBS
LIBS is the variable that Autoconf uses to put library flags. From the manual of GNU Autoconf (version 2.69): > -- Variable: LDFLAGS > > [...] > > This variable's contents should contain options like '-s' and '-L' > that affect only the behavior of the linker. Please see the > explanation of 'CFLAGS' for what you can do if an option also > affects other phases of the compiler. > > Don't use this variable to pass library names ('-l') to the linker; > use 'LIBS' instead. > > -- Variable: LIBS > > '-l' options to pass to the linker. The default value is empty, > but some Autoconf macros may prepend extra libraries to this > variable if those libraries are found and provide necessary > functions, see *note Libraries::. 'configure' uses this variable > when linking programs to test for C, C++, Objective C, Objective > C++, Fortran, and Go features.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 51767d296..1b827922d 100755
--- a/configure
+++ b/configure
@@ -3334,7 +3334,7 @@ else
3334$as_echo "yes" >&6; } 3334$as_echo "yes" >&6; }
3335 3335
3336 EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS" 3336 EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS"
3337 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $AA_LIBS" 3337 LIBS="$LIBS $AA_LIBS"
3338 3338
3339fi 3339fi
3340 3340
@@ -3350,7 +3350,7 @@ fi
3350if test "x$enable_selinux" = "xyes"; then : 3350if test "x$enable_selinux" = "xyes"; then :
3351 3351
3352 HAVE_SELINUX="-DHAVE_SELINUX" 3352 HAVE_SELINUX="-DHAVE_SELINUX"
3353 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lselinux" 3353 LIBS="$LIBS -lselinux"
3354 3354
3355fi 3355fi
3356 3356
@@ -3612,7 +3612,8 @@ fi
3612if test "x$enable_gcov" = "xyes"; then : 3612if test "x$enable_gcov" = "xyes"; then :
3613 3613
3614 HAVE_GCOV="--coverage -DHAVE_GCOV" 3614 HAVE_GCOV="--coverage -DHAVE_GCOV"
3615 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lgcov --coverage" 3615 EXTRA_LDFLAGS="$EXTRA_LDFLAGS --coverage"
3616 LIBS="$LIBS -lgcov"
3616 3617
3617fi 3618fi
3618 3619