A linker flag (-Wl,--export-dynamic) leaks into the cflags variable in gtk3 pkgconfig file, see bellow. [root@fedora dnf]# /usr/bin/pkg-config --cflags gtk+-3.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/cloudproviders -I/usr/include/blkid -I/usr/include/at-spi-2.0 -Wl,--export-dynamic -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/sysprof-4 -pthread -I/usr/include/libpng16 - seen with gtk3-devel-3.24.38-2.fc39.s390x - it causes eg. LibreOffice build failure in the current mass rebuild Reproducible: Always
The build system in gtk3 does not use the pkg-config generators which are used by gtk4. I chatted with the gtk maintainers just now, and they are happy for the gtk3 pkg-config file generation to be using the same process in gtk3 and gtk4, so I will work on this soon.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.