From 626dc172ee8f7bf799bb533e3cddc93affe62ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Thu, 22 Mar 2018 00:43:32 +0000 Subject: [PATCH] arm-netbsd: append -N to the command line. lets figure out later if this is the right solution here git-svn-id: trunk@38590 - --- compiler/systems/t_bsd.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas index e6a5f22c81..ba4994103e 100644 --- a/compiler/systems/t_bsd.pas +++ b/compiler/systems/t_bsd.pas @@ -796,12 +796,16 @@ begin else DynLinKStr:=DynLinkStr+' -dynamic'; // one dash! end; - + { Use -nopie on OpenBSD } if (target_info.system in systems_openbsd) and (target_info.system <> system_x86_64_openbsd) then Info.ExtraOptions:=Info.ExtraOptions+' -nopie'; - + +{ -N seems to be needed on NetBSD/earm } + if (target_info.system in [system_arm_netbsd]) then + Info.ExtraOptions:=Info.ExtraOptions+' -N'; + { Write used files and libraries } WriteResponseFile(false);