[BZ#776857] 2.41.0 breaks static builds with "./configure --disable-shared"
Submitted by Hanno Boeck
Link to original bug (#776857)
Description
Created attachment 342824 "configure --disable-shared; make" output (xz packed)
In autotools-based libraries it's usually possible to use the --disable-shared parameter to configure to avoid building shared libraries and statically linking the shipped executables with the library.
This used to work in previous versions of librsvg, yet it breaks with 2.41.0:
CCLD rsvg-convert
./.libs/librsvg-2.a(librsvg_2_la-rsvg-styles.o): In function rsvg_state_init': /mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:117: undefined reference to
rsvg_length_parse'
/mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:134: undefined reference to rsvg_length_parse' /mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:143: undefined reference to
rsvg_length_parse'
./.libs/librsvg-2.a(librsvg_2_la-rsvg-styles.o): In function rsvg_parse_style_pair': /mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:696: undefined reference to
rsvg_length_parse'
/mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:722: undefined reference to rsvg_length_parse' ./.libs/librsvg-2.a(librsvg_2_la-rsvg-styles.o):/mnt/ram/x/librsvg-2.41.0/rsvg-styles.c:809: more undefined references to
rsvg_length_parse' follow
[many more such errors, I'll attach a log]
This may be related to the rust changes.
Attachment 342824, ""configure --disable-shared; make" output (xz packed)":
configure--disable-shared-make.log.xz