From f8978af7bf5b45287181df05f5c3b0bed2804544 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Tue, 21 Aug 2012 06:32:16 -0700 Subject: glib: Really force static only building 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. --- glib/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'glib') diff --git a/glib/configure.ac b/glib/configure.ac index 8ac9631..5495c75 100644 --- a/glib/configure.ac +++ b/glib/configure.ac @@ -485,9 +485,14 @@ 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-shared win32-dll]) +LT_INIT([disable-static win32-dll]) dnl when using libtool 2.x create libtool early, because it's used in configure m4_ifdef([LT_OUTPUT], [LT_OUTPUT]) -- cgit v1.2.1