mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-16 08:08:08 +02:00
glib: Ensure only static build is performed
Since we're going to use glib as a convenience library, we need to make sure it builds as if --enable-static was passed. This only matters on Windows where a couple extra macros are defined and the DLL machinery is disabled.
This commit is contained in:
parent
58b6b2d995
commit
f95579d268
3 changed files with 15 additions and 1 deletions
|
|
@ -4,3 +4,4 @@ foreign-automake.patch
|
|||
no-gregex.patch
|
||||
no-pkg-config.patch
|
||||
cross-compiling.patch
|
||||
static-only.patch
|
||||
|
|
|
|||
13
glib-patches/static-only.patch
Normal file
13
glib-patches/static-only.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/glib/configure.ac b/glib/configure.ac
|
||||
index 160f57d..a78d516 100644
|
||||
--- a/glib/configure.ac
|
||||
+++ b/glib/configure.ac
|
||||
@@ -498,7 +498,7 @@ esac
|
||||
|
||||
dnl Initialize libtool
|
||||
LT_PREREQ([2.2])
|
||||
-LT_INIT([disable-static win32-dll])
|
||||
+LT_INIT([disable-shared win32-dll])
|
||||
dnl when using libtool 2.x create libtool early, because it's used in configure
|
||||
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
|
||||
|
||||
|
|
@ -498,7 +498,7 @@ esac
|
|||
|
||||
dnl Initialize libtool
|
||||
LT_PREREQ([2.2])
|
||||
LT_INIT([disable-static win32-dll])
|
||||
LT_INIT([disable-shared win32-dll])
|
||||
dnl when using libtool 2.x create libtool early, because it's used in configure
|
||||
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue