You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
link: running clang failed: exit status 1
ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) file '/usr/local/lib/libphp.so' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Had the same issue and the target above worked for me, though I had to also specify the install name otherwise the linker kept ignoring it even when the path was explicitly set in linker flags.
Had the same issue and the target above worked for me, though I had to also specify the install name otherwise the linker kept ignoring it even when the path was explicitly set in linker flags.
Can you tell me where you put the name? My target isn't working either
This makes me able to link it, but the path seems to be hardcoded so I can't move the .dylib to another directory. Don't have enough linker/build system knowledge to know what the right solution is here.
Activity
dunglas commentedon May 11, 2022
I'm able to link by adding this target to the
Makefile:I use the following configuration:
However, if I add the
--enable-debugflag, I get the following error:stancl commentedon Sep 24, 2024
Had the same issue and the target above worked for me, though I had to also specify the install name otherwise the linker kept ignoring it even when the path was explicitly set in linker flags.
AndrewKusov commentedon Sep 29, 2024
Can you tell me where you put the name? My target isn't working either
stancl commentedon Sep 29, 2024
This makes me able to link it, but the path seems to be hardcoded so I can't move the
.dylibto another directory. Don't have enough linker/build system knowledge to know what the right solution is here.stancl commentedon Sep 29, 2024
-install_name @rpath/$@seems to make it movable.dunglas commentedon Dec 16, 2024
I proposed a fix in this PR: #17183
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'
fix GH-8533: dynamic libphp linking on Mac