Date: Fri, 05 Jan 2024 23:35:39 +0000 From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 276135] devel/libgudev: fix build with clang 18 Message-ID: <bug-276135-7141-Cmr7BgB976@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-276135-7141@https.bugs.freebsd.org/bugzilla/> References: <bug-276135-7141@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody) <x11@FreeBSD.org> for maintainer-feedback: Bug 276135: devel/libgudev: fix build with clang 18 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276135 --- Description --- Clang 18 no longer accepts -export-dynamic, which is a linker option, resulting in an error building devel/libgudev: cc -o gudev/libgudev-1.0.so.0.3.0 gudev/libgudev-1.0.so.0.3.0.p/meson-generated_.._gudevenumtypes.c.o gudev/libgudev-1.0.so.0.3.0.p/gudevclient.c.o gudev/libgudev-1.0.so.0.3.0.p/gudevdevice.c.o gudev/libgudev-1.0.so.0.3.0.p/gudevenumerator.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libgudev-1.0.so.0 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib -export-dynamic -Wl,--version-script,/wrkdirs/share/dim/ports/devel/libgudev/work/libgudev-= 237/ libgudev-1.0.sym /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libudev.so -Wl,--end-group cc: error: unknown argument: '-export-dynamic' Fix this by using the correct spelling: -Wl,--export-dynamic.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276135-7141-Cmr7BgB976>