Răsfoiți Sursa

Temporary hack to allow the compilation of libraries on Mac OS X. My current theory is that some of the $indirect symbols messed things up... I need yet to investigate the issue in detail.

t_bsd.pas, TLinkerBSD:
  * SetDefaultInfo: since we're getting the error that there are relocs in a readonly section we reduce the error to a warning as a temporary workaround

git-svn-id: branches/svenbarth/packages@31933 -
svenbarth 9 ani în urmă
părinte
comite
e7adfb9168
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      compiler/systems/t_bsd.pas

+ 1 - 1
compiler/systems/t_bsd.pas

@@ -174,7 +174,7 @@ begin
              ExeCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -multiply_defined suppress -L. -o $EXE $CATRES';
 {$endif ndef cpu64bitaddr}
              if (apptype<>app_bundle) then
-               DllCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $GCSECTIONS -dynamic -dylib -multiply_defined suppress -L. -o $EXE $CATRES'
+               DllCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $GCSECTIONS -read_only_relocs warning -dynamic -dylib -multiply_defined suppress -L. -o $EXE $CATRES'
              else
                DllCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $GCSECTIONS -dynamic -bundle -multiply_defined suppress -L. -o $EXE $CATRES'
            end