mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-11 10:10:40 +01:00
* fix target options for GNU ld
git-svn-id: trunk@15938 -
This commit is contained in:
parent
442bdbec58
commit
cd0329a15e
@ -1094,12 +1094,12 @@ implementation
|
|||||||
with Info do
|
with Info do
|
||||||
begin
|
begin
|
||||||
{$ifdef x86_64}
|
{$ifdef x86_64}
|
||||||
targetopts:='-b pe-x86_64';
|
targetopts:='-b pei-x86-64';
|
||||||
{$else x86_64}
|
{$else x86_64}
|
||||||
if target_info.system=system_arm_wince then
|
if target_info.system=system_arm_wince then
|
||||||
targetopts:='-m arm_wince_pe'
|
targetopts:='-m arm_wince_pe'
|
||||||
else
|
else
|
||||||
targetopts:='-b pe-i386 -m i386pe';
|
targetopts:='-b pei-i386 -m i386pe';
|
||||||
{$endif not x86_64}
|
{$endif not x86_64}
|
||||||
ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
|
ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
|
||||||
DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
|
DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user