Browse Source

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 years ago
parent
commit
e7adfb9168
1 changed files with 1 additions and 1 deletions
  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';
              ExeCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -multiply_defined suppress -L. -o $EXE $CATRES';
 {$endif ndef cpu64bitaddr}
 {$endif ndef cpu64bitaddr}
              if (apptype<>app_bundle) then
              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
              else
                DllCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $GCSECTIONS -dynamic -bundle -multiply_defined suppress -L. -o $EXE $CATRES'
                DllCmd[1]:='ld $PRTOBJ $TARGET $EMUL $OPT $GCSECTIONS -dynamic -bundle -multiply_defined suppress -L. -o $EXE $CATRES'
            end
            end