Index: fpc/fpcsrc/compiler/systems/t_sunos.pas =================================================================== --- fpc.orig/fpcsrc/compiler/systems/t_sunos.pas 2014-07-02 22:36:04.651731947 +0400 +++ fpc/fpcsrc/compiler/systems/t_sunos.pas 2014-07-02 22:48:31.124460657 +0400 @@ -143,18 +143,18 @@ } {$ifdef x86_64} const - gld = 'gld -m elf_x86_64 '; - solaris_ld = '/usr/bin/ld -64 '; + gld = 'ld -m elf_x86_64_sol2 '; + solaris_ld = 'sunld -64 '; {$endif} {$ifdef i386} const - gld = 'gld '; - solaris_ld = '/usr/bin/ld '; + gld = 'ld '; + solaris_ld = 'sunld '; {$endif } {$ifdef sparc} const - gld = 'gld '; - solaris_ld = 'ld '; + gld = 'ld '; + solaris_ld = 'sunld '; {$endif} begin Glibc2:=false; @@ -165,7 +165,7 @@ ExeCmd[1]:=gld + '$OPT $DYNLINK $STATIC $STRIP -L. -o $EXE $RES'; ExeCmd[2]:=solaris_ld + '$OPT $DYNLINK $STATIC $STRIP -L . -o $EXE $RESDATA'; DllCmd[1]:=gld + '$OPT $INITFINI -shared -L. -o $EXE $RES'; - DllCmd[2]:='gstrip --strip-unneeded $EXE'; + DllCmd[2]:='strip --strip-unneeded $EXE'; DllCmd[3]:=solaris_ld + '$OPT $INITFINI -M $VERSIONFILE -G -Bdynamic -L. -o $EXE $RESDATA'; DynamicLinker:=''; { Gnu uses the default } Glibc21:=false;