summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-08-17 11:44:39 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-08-17 11:44:39 +0200
commit6413fcde4fe0272eee469aaf41c8bb1d6e6a270f (patch)
tree5d9ed44268cebf689da7fceafa88371b524a8027 /configure.ac
parent93a2584cd2ffb2a6e4b17682ba250889059f5d8b (diff)
downloadglibc-6413fcde4fe0272eee469aaf41c8bb1d6e6a270f.tar.gz
glibc-6413fcde4fe0272eee469aaf41c8bb1d6e6a270f.tar.xz
glibc-6413fcde4fe0272eee469aaf41c8bb1d6e6a270f.zip
Add --with-nonshared-cflags option to configure
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 014e09a5d5..8045d44dd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,14 @@ AC_ARG_WITH([default-link],
 	    [use_default_link=$withval],
 	    [use_default_link=default])
 
+dnl Additional build flags injection.
+AC_ARG_WITH([nonshared-cflags],
+	    AC_HELP_STRING([--with-nonshared-cflags=CFLAGS],
+			   [build nonshared libraries with additional CFLAGS]),
+	    [extra_nonshared_cflags=$withval],
+	    [extra_nonshared_cflags=])
+AC_SUBST(extra_nonshared_cflags)
+
 AC_ARG_ENABLE([sanity-checks],
 	      AC_HELP_STRING([--disable-sanity-checks],
 			     [really do not use threads (should not be used except in special situations) @<:@default=yes@:>@]),