The current svn does not work for me (bug 4317) but I can get it working with the attached patch. (It seems that the -T option makes ld not use it's default script)
Colin
diff -uNr trunk/fpcsrc/compiler/systems/t_linux.pas trunk.w/fpcsrc/compiler/systems/t_linux.pas
--- trunk/fpcsrc/compiler/systems/t_linux.pas	2005-08-29 09:01:35.000000000 +0100
+++ trunk.w/fpcsrc/compiler/systems/t_linux.pas	2005-08-29 09:19:00.000000000 +0100
@@ -217,8 +217,8 @@
 begin
   with Info do
    begin
-     ExeCmd[1]:='ld '+platform_select+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE -T $RES';
-     DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared -L. -o $EXE -T $RES';
+     ExeCmd[1]:='ld '+platform_select+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE $RES';
+     DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared -L. -o $EXE $RES';
      DllCmd[2]:='strip --strip-unneeded $EXE';
 {$ifdef m68k}
      libctype:=glibc2;
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to