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.
When glib is built static, the threads and clock code are not
initialized since DllMain is never run. Instead, initialize them from
the glib constructor.
https://bugzilla.gnome.org/show_bug.cgi?id=678387
pkg-config doesn't use message translation, so there's no need to build
it into the bundled glib. Furthermore, when not using glibc, this drags
in extra dependencies on gettext, libintl and iconv. Remove their usage
in two steps:
1. Don't include libintl.h directly from code. glibintl.h
conditionalizes the include of libintl.h based on the ENABLE_NLS define
and creates fallback macros when it's unwanted.
2. Remove the usage of the gettext macros in glib's configure.ac. This
ensures that the unwanted dependencies aren't searched for. Two defines
are kept around to keep the code happy.
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.
Until the needed surgery is done to remove gettext support from the
internal glib (since pkg-config doesn't need it), make sure that libintl
is linked in when necessary.
We just want to be able to build glib from the within the pkg-config
tree. Everything else is just extra weight and is better used from an
actual glib checkout. Unnecessary files include:
* documentation
* translations
* tests
* ChangeLogs
* non-autotools win32 build files
* various other build and/or internal files
Grab a snapshot of a tag from a local glib checkout, remove a bunch of
files and apply some patches. The idea is to make the snapshot of glib
be repeatable.
* Makefile.am: Add support for using the system glib. Thanks to
Peter Breitenlohner for the bug and the patch. Freedesktop #9708
* configure.in: Add support for using the system glib.
* glib-patches/no-dist-distclean-files.diff,
glib-patches/automake-warning.diff,
glib-patches/autoconf-warning.diff: Get rid of some warnings when
configuring glib.
Author: tfheen
Date: 2005-06-26 18:42:54 GMT
2005-06-26 Tollef Fog Heen <tfheen@err.no>
* glib-patches/configure.in-fd_set.diff: Patch to grep for fd_set
rather than fd_mask. Thanks to David Wolfe for the fix. This
should make pkg-config happier on QNX.
Author: tfheen
Date: 2005-04-02 17:25:48 GMT
2005-04-02 Tollef Fog Heen <tfheen@err.no>
* glib-patches/remove-strsignal-prototype.diff: Remove strsignal
prototype from gstrfuncs.c, it is included in string.h. This
fixes a compilation issue on cygwin. (Freedesktop #2598)
Author: tfheen
Date: 2005-04-02 15:17:09 GMT
2005-04-02 Tollef Fog Heen <tfheen@err.no>
* glib-patches/distcheckfix.diff: Move glibconfig-sysdefs.h and
glibconfig.h to DISTCLEANFILES since they're made by configure.
Author: tfheen
Date: 2005-04-01 22:06:47 GMT
2005-04-02 Tollef Fog Heen <tfheen@err.no>
* glib-patches/mkinstalldirs.update.diff: cvs admin -ko to avoid
having the Id CVS keyword being expanded, which broke the
application of the patch.
Author: tfheen
Date: 2005-03-28 15:49:23 GMT
2005-03-28 Tollef Fog Heen <tfheen@err.no>
* glib-patches/distcheckfix.diff: Add some files to CLEANFILES so
make distcheck now works.
Author: tfheen
Date: 2005-03-28 14:21:23 GMT
2005-03-28 Tollef Fog Heen <tfheen@err.no>
* autogen.sh: Extra paranoia -- fail if running auto* fails or if
patching fails.
* glib-patches/mkinstalldirs.update.diff: Update patch so it
applies cleanly
* glib-patches/pthread-config-fix.diff: adjust offsets so patch is
quiet again
Author: tfheen
Date: 2005-03-18 08:04:33 GMT
2005-03-18 Tollef Fog Heen <tfheen@err.no>
* glib-patches/pthread-config-fix.diff: Add patch to detect
pthreads properly on some architectures. Thanks to Michael
Haubenwallner for reporting this bug and providing a patch.