From ca5e2ee16a2a6c2268d3595ab3594b18c662d4b1 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 20 Aug 2020 05:20:26 +0000 Subject: [PATCH] Also add platformopt to DllCmd[1], as done for ExeCmd[1] git-svn-id: trunk@46501 - --- compiler/systems/t_linux.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/systems/t_linux.pas b/compiler/systems/t_linux.pas index f5874b2fa5..b36d20f51d 100644 --- a/compiler/systems/t_linux.pas +++ b/compiler/systems/t_linux.pas @@ -390,7 +390,7 @@ begin with Info do begin ExeCmd[1]:='ld '+platform_select+platformopt+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP $MAP $LTO -L. -o $EXE'; - DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME $MAP $LTO -shared $GCSECTIONS -L. -o $EXE'; + DllCmd[1]:='ld '+platform_select+platformopt+' $OPT $INIT $FINI $SONAME $MAP $LTO -shared $GCSECTIONS -L. -o $EXE'; { when we want to cross-link we need to override default library paths; when targeting binutils 2.19 or later, we use the "INSERT" command to augment the default linkerscript, which also requires -T (normally that