[MacPorts] #71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for architecture ppc
MacPorts
noreply at macports.org
Mon Dec 30 21:44:55 UTC 2024
#71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for
architecture ppc
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: gnuregex |
---------------------------+--------------------
Comment (by ryandesign):
Replying to [comment:2 kencu]:
> Ignoring libtool,and changing the link command to this, does work:
>
> {{{
> post-build {
> system -W ${worksrcpath}
"MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}
-lSystem -dynamiclib -install_name ${prefix}/lib/libgnuregex.dylib -o
libgnuregex.dylib regex.o"
> }
> }}}
>
>
> As to exactly why libtool is not working, not sure -- we have libtool
experts around MacPorts who would know better than I do.
Do we? I think people are generally familiar with GNU libtool but I for
one have never really been clear on the purpose of Apple libtool, which is
the one being used here.
This extensive [https://forums.developer.apple.com/forums/thread/715385
Apple library primer] only mentions libtool in regard to creating static
libraries, which is not what we're doing here.
The port has used libtool to create this library
[changeset:88c7ba87cb4912680a4bc62945c2cd6264dbca1d/macports-ports for
over two decades] but I'm not sure why it does that instead of using the
compiler.
I'm inclined to remove the `post-build` block and move the dylib creation
into the Makefile using a patch, and switch to using the compiler instead
of libtool, since that's what other projects do.
The port doesn't honor MacPorts CFLAGS or LDFLAGS. Fixing that will be
easier if all the building happens in the Makefile.
--
Ticket URL: <https://trac.macports.org/ticket/71680#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list