Bug 2224508 - linker flag leaks into cflags in pkgconfig file
Summary: linker flag leaks into cflags in pkgconfig file
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk3
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 08:45 UTC by Dan Horák
Modified: 2023-08-16 08:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2023-07-21 08:45:50 UTC
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

Comment 1 David King 2023-07-30 07:54:07 UTC
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.

Comment 2 Fedora Release Engineering 2023-08-16 08:13:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


Note You need to log in before you can comment on or make changes to this bug.