no support for compiling with static libraries
Submitted by Rafael Kitover
Link to original bug (#790852)
Description
I have a static glib etc., because I'm trying to build a static library set, and I get this:
CCLD libgiscanner.la
CCLD gi-dump-types
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD libgirepository-gthash.la
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD _giscanner.la
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD libgirepository-1.0.la
CCLD libgirepository-internals.la
GEN g-ir-scanner
GEN g-ir-annotation-tool
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD g-ir-compiler
CCLD g-ir-generate
CCLD g-ir-inspect
CCLD glib-print
GICOMP gir/DBus-1.0.gir
GICOMP gir/freetype2-2.0.gir
GICOMP gir/fontconfig-2.0.gir
GICOMP gir/xlib-2.0.gir
GICOMP gir/libxml2-2.0.gir
GICOMP gir/xft-2.0.gir
GICOMP gir/GL-1.0.gir
GISCAN GLib-2.0.gir
GICOMP gir/xfixes-4.0.gir
GICOMP gir/xrandr-1.3.gir
GICOMP gir/win32-1.0.gir
GICOMP gir/cairo-1.0.gir
ERROR: can't resolve libraries to shared libraries: gobject-2.0, glib-2.0
Makefile:3533: recipe for target 'GLib-2.0.gir' failed
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory '/home/rkitover/vbam-build-linux/dists/gobject-introspection'
Makefile:2820: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/rkitover/vbam-build-linux/dists/gobject-introspection'
Makefile:1580: recipe for target 'all' failed
I filed a separate bug about being unable to build the project as static itself:
https://bugzilla.gnome.org/show_bug.cgi?id=790847
So in this case I am compiling with --disable-static and --enable-shared, but this also fails because most of my other libs (including glib etc.) are static.
Edited by Christoph Reiter