mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
`$(LIBRUBYARG_STATIC)` already ends with `$(MAINLIBS)`, so appending them again makes the Xcode 15+ linker warn about duplicate libraries. The shared ruby still needs `$(MAINLIBS)` [Bug #20072], so drop them only when `$(LIBRUBYARG)` is the static one. `PROGRAM_LIBS` is internal to the build and is not exported to rbconfig. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>