aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-14 09:49:58 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-19 12:53:25 +0200
commit677ecc8f1fcca27ddabf3df4c7ef709686f57389 (patch)
treecac3a2ef9647d6c6144a1e2ad42450f740c2ad67
parent3c15340c861c4011e225c0da9ad781fc7a9fd79d (diff)
downloadneard-677ecc8f1fcca27ddabf3df4c7ef709686f57389.tar.gz
build: fix missing usage of PIE check result
The test result whether compiler accepts -fPIE in acinclude.m4 is stored as neard_cv_prog_cc_pie variable. Using wrong name of that variable in a test for accepting '--enable-pie' configure argument caused PIE to be never enabled (unless by default by compiler). Fixes: 10c7e4a3cec3 ("build: Namespace local macros with NEARD_ instead of AC_ or nothing") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b9419c1..1ec6f4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],
AC_ARG_ENABLE(pie, AS_HELP_STRING([--enable-pie],
[enable position independent executables flag]), [
if (test "${enableval}" = "yes" &&
- test "${ac_cv_prog_cc_pie}" = "yes"); then
+ test "${neard_cv_prog_cc_pie}" = "yes"); then
CFLAGS="$CFLAGS -fPIE"
LDFLAGS="$LDFLAGS -pie"
fi