From ff2186ce00ec910f479595788bdece23cdef83dd Mon Sep 17 00:00:00 2001 From: marco Date: Sat, 4 Oct 2014 11:12:14 +0000 Subject: [PATCH] * OpenBSD gets no pie. (add -nopie) git-svn-id: trunk@28736 - --- compiler/systems/t_bsd.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas index 911fcd0e08..bfe956971f 100644 --- a/compiler/systems/t_bsd.pas +++ b/compiler/systems/t_bsd.pas @@ -695,6 +695,11 @@ begin else DynLinKStr:=DynLinkStr+' -dynamic'; // one dash! end; + +{ Use -nopie on OpenBSD } + if (target_info.system in systems_openbsd) then + Info.ExtraOptions:=Info.ExtraOptions+' -nopie'; + { Write used files and libraries } WriteResponseFile(false);