mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
+ pass the -dynamic-linker option to the linker even when making a static binary
on OpenBSD, because that seems to be needed in order to produce a static position independent executable in the correct format for that platform git-svn-id: trunk@41668 -
This commit is contained in:
parent
d657373933
commit
ac86980f8a
@ -789,7 +789,9 @@ begin
|
||||
|
||||
if(not(target_info.system in systems_darwin) and
|
||||
(cs_profile in current_settings.moduleswitches)) or
|
||||
((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
|
||||
((Info.DynamicLinker<>'') and
|
||||
((not SharedLibFiles.Empty) or
|
||||
(target_info.system in systems_openbsd))) then
|
||||
DynLinkStr:='-dynamic-linker='+Info.DynamicLinker;
|
||||
|
||||
if CShared Then
|
||||
|
Loading…
Reference in New Issue
Block a user