mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 02:45:58 +02:00
* link with -nopie on OpenBSD only if PIC code generation is disabled
git-svn-id: trunk@41652 -
This commit is contained in:
parent
cb5b407e89
commit
3a58a6261a
@ -800,8 +800,9 @@ begin
|
|||||||
DynLinKStr:=DynLinkStr+' -dynamic'; // one dash!
|
DynLinKStr:=DynLinkStr+' -dynamic'; // one dash!
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ Use -nopie on OpenBSD }
|
{ Use -nopie on OpenBSD if PIC support is turned off }
|
||||||
if (target_info.system in systems_openbsd) then
|
if (target_info.system in systems_openbsd) and
|
||||||
|
not(cs_create_pic in current_settings.moduleswitches) then
|
||||||
Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
|
Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
|
||||||
|
|
||||||
{ -N seems to be needed on NetBSD/earm }
|
{ -N seems to be needed on NetBSD/earm }
|
||||||
|
Loading…
Reference in New Issue
Block a user