aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2021-07-09 15:29:55 +0100
committerAlex Bennée <alex.bennee@linaro.org>2021-07-14 15:54:13 +0100
commit5f2453ac749d2765d81ada38c29d3d10c1ef2bdf (patch)
tree1697633f85158babff37f8ef827032fc84f6b954 /configure
parentd1a142572d8e3cf932647120d0a72c9942667e9c (diff)
configure: add an explicit static and plugins check
Moving this check earlier will make the later re-factor for enabling by default a bit neater. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210709143005.1554-31-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index e2a353ce1c..2c39ccf8e1 100755
--- a/configure
+++ b/configure
@@ -2197,11 +2197,14 @@ if test "$modules" = "no" && test "$module_upgrades" = "yes" ; then
error_exit "Can't enable module-upgrades as Modules are not enabled"
fi
-# Static linking is not possible with modules or PIE
+# Static linking is not possible with plugins, modules or PIE
if test "$static" = "yes" ; then
if test "$modules" = "yes" ; then
error_exit "static and modules are mutually incompatible"
fi
+ if test "$plugins" = "yes"; then
+ error_exit "static and plugins are mutually incompatible"
+ fi
fi
# Unconditional check for compiler __thread support
@@ -3979,7 +3982,7 @@ if test "$plugins" = "yes" &&
"Plugin support requires dynamic linking and specifying a set of symbols " \
"that are exported to plugins. Unfortunately your linker doesn't " \
"support the flag (--dynamic-list or -exported_symbols_list) used " \
- "for this purpose. You can't build with --static."
+ "for this purpose."
fi
########################################