git: 1dd78a56c40c - main - x11-toolkits/gtk40: unbreak on FreeBSD < 12
Jan Beich
jbeich at FreeBSD.org
Tue Jun 1 14:16:49 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1dd78a56c40c6e850f811fb007d433756c2db458
commit 1dd78a56c40c6e850f811fb007d433756c2db458
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-06-01 13:52:36 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-06-01 14:14:53 +0000
x11-toolkits/gtk40: unbreak on FreeBSD < 12
FAILED: tools/gtk4-encode-symbolic-svg
cc -o tools/gtk4-encode-symbolic-svg tools/gtk4-encode-symbolic-svg.p/encodesymbolic.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group -lexecinfo -fstack-protector-strong gtk/libgtk.a gtk/css/libgtk_css.a gdk/libgdk.a gdk/broadway/libgdk-broadway.a gdk/wayland/libgdk-wayland.a gdk/wayland/cursor/libwayland+cursor.a gdk/x11/libgdk-x11.a gsk/libgsk.a -Wl,-Bsymbolic -Wl,-z,relro -Wl,-z,now -Wl,--export-dynamic /usr/local/lib/libgmodule-2.0.so -pthread /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libharfbuzz.so /usr/local/lib/libcairo.so -lpthread /usr/local/lib/libfribidi.so /usr/local/lib/libcairo-gobject.so /usr/local/lib/libfontconfig.so /usr/local/lib/libfreetype.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libepoxy.so -lm /usr/local/lib/libgraphene-1.0.so /usr/local/lib/libpangoft2-1.0.so /usr/local/l
ib/libXi.so /usr/local/lib/libX11.so /usr/local/lib/libxkbcommon.so /usr/local/lib/libwayland-client.so /usr/local/lib/libwayland-egl.so /usr/local/lib/libXrender.so /usr/local/lib/libXext.so /usr/local/lib/libXcursor.so /usr/local/lib/libXdamage.so /usr/local/lib/libXfixes.so /usr/local/lib/libXcomposite.so /usr/local/lib/libXrandr.so /usr/local/lib/libXinerama.so /usr/local/lib/libcairo-script-interpreter.so -Wl,--end-group
/usr/bin/ld: undefined reference to symbol `g_module_symbol' (try adding -lgmodule-2.0)
/usr/local/lib/libgmodule-2.0.so: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1
Reported by: pkg-fallout
---
x11-toolkits/gtk40/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/x11-toolkits/gtk40/Makefile b/x11-toolkits/gtk40/Makefile
index a050050b7b58..7336c818adeb 100644
--- a/x11-toolkits/gtk40/Makefile
+++ b/x11-toolkits/gtk40/Makefile
@@ -43,6 +43,11 @@ GLIB_SCHEMAS= org.gtk.Demo4.gschema.xml \
org.gtk.gtk4.Settings.EmojiChooser.gschema.xml \
org.gtk.gtk4.Settings.FileChooser.gschema.xml
+.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
+# undefined reference to symbol `g_module_symbol' (try adding -lgmodule-2.0)
+LDFLAGS+= -fuse-ld=lld
+.endif
+
OPTIONS_DEFINE= CUPS CLOUDPRINT COLORD DEBUG BROADWAY FFMPEG \
GSTREAMER VULKAN WAYLAND X11
OPTIONS_DEFAULT=CUPS COLORD BROADWAY WAYLAND X11
More information about the dev-commits-ports-all
mailing list