Skip to content

Alternative to copying part of a recent Xcode libSystem.tbd to src/mach_dyld_atfork.tbd #49976

Closed
@benz0li

Description

@benz0li

I find copying part of a recent Xcode libSystem.tbd file into the Julia source code rather odd.

It also prevents MacPorts from building current Julia versions (≥ 1.8.0) on 'OS X'/macOS 10.10 - 10.14 (Yosemite - Mojave).


@quentinmit was able to get Julia to build on macOS 10.14 (Mojave)

[...] with a simple Makefile patch; I replaced

OSLIBS += $(SRCDIR)/mach_dyld_atfork.tbd

with

CLANG_LDFLAGS += -Wl,-U,__dyld_atfork_prepare -Wl,-U,__dyld_atfork_parent

and added $(CLANG_LDFLAGS) to the rules building libjulia-internal and libjulia-internal-debug. The latter is probably safe on every platform but the former needs a guard for older OS versions, of course.

It's possible that the additional -U flags are unnecessary, but I didn't test that (the previous line sets a different flag that theoretically should allow unknown symbols as well).

#65550 (julia: link fails for 10.14 and earlier: ld: unsupported tapi file type '!tapi-tbd' in YAML file) – MacPorts


Cross references:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions