Skip to content

Commit d52deec

Browse files
author
urbaneks
committed
macOS: add -headerpad_max_install_names to main_ldflags to work around Xcode 16.3 regression
git-svn-id: https://svn.r-project.org/R/trunk@88214 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f46407a commit d52deec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30014,6 +30014,10 @@ case "${host_os}" in
3001430014
darwin_pic="-fPIC"
3001530015
dylib_undefined_allowed=no
3001630016
darwin_dylib_ldflags="-dynamiclib"
30017+
## Xcode 16.3 (Apple clang-17000) injects a section right behind
30018+
## the header (unnecessarily), and thus requires this in order to
30019+
## allow absolute paths to R libraries (e.g., for the framework)
30020+
main_ldflags="-Wl,-headerpad_max_install_names"
3001730021
## -single_module is default and -multiply_defined is obsolete
3001830022
## at least since macOS 11 (darwin 20)
3001930023
case "${host_os}" in

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,10 @@ case "${host_os}" in
15221522
darwin_pic="-fPIC"
15231523
dylib_undefined_allowed=no
15241524
darwin_dylib_ldflags="-dynamiclib"
1525+
## Xcode 16.3 (Apple clang-17000) injects a section right behind
1526+
## the header (unnecessarily), and thus requires this in order to
1527+
## allow absolute paths to R libraries (e.g., for the framework)
1528+
main_ldflags="-Wl,-headerpad_max_install_names"
15251529
## -single_module is default and -multiply_defined is obsolete
15261530
## at least since macOS 11 (darwin 20)
15271531
case "${host_os}" in

0 commit comments

Comments
 (0)