Skip to content

Commit 1b8ea03

Browse files
committed
on macOS, always leave room for more paths in the executable
1 parent 418a040 commit 1b8ea03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fpm_targets.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,11 +1239,12 @@ subroutine resolve_target_linking(targets, model, library, error)
12391239
exclude_self=.not.has_self_lib)
12401240

12411241

1242-
! On macOS, add room for 2 install_name_tool paths
1243-
target%link_flags = target%link_flags // model%compiler%get_headerpad_flags()
12441242

12451243
end if
12461244

1245+
! On macOS, add room for 2 install_name_tool paths (always needed for executables)
1246+
target%link_flags = target%link_flags // model%compiler%get_headerpad_flags()
1247+
12471248
if (allocated(target%link_libraries)) then
12481249
if (size(target%link_libraries) > 0) then
12491250
target%link_flags = model%compiler%enumerate_libraries(target%link_flags, target%link_libraries)

0 commit comments

Comments
 (0)