mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 04:20:04 +01:00
Making --enable-static --disable-shared the default fixes most cases, but build environments often pass --enable-shared --disable-static for all autotooled projects. Force static building by setting the appropriate variables as if they've come from the command line parameters.
16 lines
431 B
Diff
16 lines
431 B
Diff
diff --git a/glib/configure.ac b/glib/configure.ac
|
|
index 67fa762..5495c75 100644
|
|
--- a/glib/configure.ac
|
|
+++ b/glib/configure.ac
|
|
@@ -485,6 +485,11 @@ case $with_libiconv in
|
|
;;
|
|
esac
|
|
|
|
+dnl Ensure we do a static-only build. This really only matters on Windows,
|
|
+dnl but it's safer to do it for all platforms.
|
|
+enable_static=yes
|
|
+enable_shared=no
|
|
+
|
|
dnl Initialize libtool
|
|
LT_PREREQ([2.2])
|
|
LT_INIT([disable-static win32-dll])
|