[MacPorts] #70386: glib2 @2.78.4_0+x11: ld: unknown option: -export_dynamic
MacPorts
noreply at macports.org
Mon Aug 5 14:25:31 UTC 2024
#70386: glib2 @2.78.4_0+x11: ld: unknown option: -export_dynamic
-----------------------+-------------------------------
Reporter: nathanpc | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords: leopard ppc64 ppc
Port: glib2 |
-----------------------+-------------------------------
Comment (by barracuda156):
Replying to [comment:3 ryandesign]:
> I don't think #53150 is relevant. #53150 is about `-export_dynamic`
being automatically added when `-rdynamic` is used. In the case of glib2
here, `-rdynamic` is not being used. The error is only happening when
building the gmodule tests, so I think it is because the file
gmodule/tests/meson.build is explicitly asking for `-export_dynamic` by
using `'export_dynamic' : true`:
>
>
https://gitlab.gnome.org/GNOME/glib/-/blob/ade79bcb5006c33d6f644cfe41d22d14728e585f/gmodule/tests/meson.build#L56
Ryan, do you know how to fix it in `meson`, so that the flag is used
conditionally on macOS version?
See discussion here: https://github.com/mesonbuild/meson/pull/13291
--
Ticket URL: <https://trac.macports.org/ticket/70386#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list