[MacPorts] #65550: julia: link fails for 10.14 and earlier: ld: unsupported tapi file type '!tapi-tbd' in YAML file
MacPorts
noreply at macports.org
Mon Feb 27 21:51:48 UTC 2023
#65550: julia: link fails for 10.14 and earlier: ld: unsupported tapi file type
'!tapi-tbd' in YAML file
------------------------+-----------------------
Reporter: githubbjs | Owner: essandess
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: julia |
------------------------+-----------------------
Comment (by quentinmit):
I was able to get julia to build on 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).
--
Ticket URL: <https://trac.macports.org/ticket/65550#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list