Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: unknown option: -export_dynamic #13543

Closed
ryandesign opened this issue Aug 14, 2024 · 2 comments · Fixed by #13557
Closed

ld: unknown option: -export_dynamic #13543

ryandesign opened this issue Aug 14, 2024 · 2 comments · Fixed by #13557
Milestone

Comments

@ryandesign
Copy link

Describe the bug
Some software building with meson now fails to build on Mac OS X 10.6 and earlier because meson now uses the linker flag -export_dynamic which the linker on Mac OS X 10.6 and earlier does not understand. See https://trac.macports.org/ticket/70386 and https://trac.macports.org/ticket/70496. This is a regression. This was caused by #13291 to fix #13290. The addition of this flag is suspect to me since all software that has ever built using meson on Mac OS X 10.6 prior to this change did so successfully without this flag. We are now reverting this change in MacPorts on Mac OS X 10.6 and earlier. Cc @barracuda156

To Reproduce
Build e.g. glib2 with meson on Mac OS X 10.6.

Expected behavior
Successful build

system parameters

  • Is this a cross build or just a plain native build (for the same computer)? plain native build
  • what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.): Mac OS X 10.6
  • what Python version are you using e.g. 3.8.0: 3.12.5
  • what meson --version: 1.5.1
  • what ninja --version if it's a Ninja build: 1.12.1
@thesamesam thesamesam added this to the 1.5.2 milestone Aug 14, 2024
@thesamesam
Copy link
Collaborator

cc @wolfgangwalther

wolfgangwalther added a commit to wolfgangwalther/meson that referenced this issue Aug 17, 2024
The flag was only introduced in ld 224.1, as mentioned in the initial PR
mesonbuild#13291.

Resolves mesonbuild#13543
wolfgangwalther added a commit to wolfgangwalther/meson that referenced this issue Aug 17, 2024
The flag was only introduced in ld 224.1, as mentioned in the initial PR
mesonbuild#13291.

Resolves mesonbuild#13543
@wolfgangwalther
Copy link
Contributor

cc @wolfgangwalther

See #13557.

eli-schwartz pushed a commit that referenced this issue Sep 16, 2024
The flag was only introduced in ld 224.1, as mentioned in the initial PR
#13291.

Resolves #13543

(cherry picked from commit 7280639)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants