瀏覽代碼

* fixed path with staticlib/objects in ppufiles

peter 27 年之前
父節點
當前提交
53443c97a7
共有 3 個文件被更改,包括 19 次插入7 次删除
  1. 5 2
      compiler/files.pas
  2. 5 2
      compiler/link.pas
  3. 9 3
      compiler/symppu.inc

+ 5 - 2
compiler/files.pas

@@ -611,7 +611,7 @@ unit files;
          { lib and exe could be loaded with a file specified with -o }
          { lib and exe could be loaded with a file specified with -o }
          if AllowOutput and (OutputFile<>'') then
          if AllowOutput and (OutputFile<>'') then
           n:=OutputFile;
           n:=OutputFile;
-         staticlibfilename:=stringdup(target_os.libprefix+n+target_os.staticlibext);
+         staticlibfilename:=stringdup(p+target_os.libprefix+n+target_os.staticlibext);
          sharedlibfilename:=stringdup(p+target_os.libprefix+n+target_os.sharedlibext);
          sharedlibfilename:=stringdup(p+target_os.libprefix+n+target_os.sharedlibext);
          { output dir of exe can be specified separatly }
          { output dir of exe can be specified separatly }
          if AllowOutput and (OutputExeDir<>'') then
          if AllowOutput and (OutputExeDir<>'') then
@@ -1021,7 +1021,10 @@ unit files;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.63  1998-10-14 11:02:49  daniel
+  Revision 1.64  1998-10-14 13:38:19  peter
+    * fixed path with staticlib/objects in ppufiles
+
+  Revision 1.63  1998/10/14 11:02:49  daniel
   * Stupid typo fixed.
   * Stupid typo fixed.
 
 
   Revision 1.62  1998/10/14 10:59:37  daniel
   Revision 1.62  1998/10/14 10:59:37  daniel

+ 5 - 2
compiler/link.pas

@@ -462,7 +462,7 @@ begin
      aktglobalswitches:=aktglobalswitches+[cs_link_extern];
      aktglobalswitches:=aktglobalswitches+[cs_link_extern];
    end;
    end;
   s:=target_ar.arcmd;
   s:=target_ar.arcmd;
-  Replace(s,'$LIB',current_module^.path^+current_module^.staticlibfilename^);
+  Replace(s,'$LIB',current_module^.staticlibfilename^);
   if filescnt=0 then
   if filescnt=0 then
    Replace(s,'$FILES',current_module^.objfilename^)
    Replace(s,'$FILES',current_module^.objfilename^)
   else
   else
@@ -499,7 +499,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.32  1998-10-14 11:03:55  daniel
+  Revision 1.33  1998-10-14 13:38:22  peter
+    * fixed path with staticlib/objects in ppufiles
+
+  Revision 1.32  1998/10/14 11:03:55  daniel
   * Forgot to dereference a pointer.
   * Forgot to dereference a pointer.
 
 
   Revision 1.31  1998/10/14 11:01:21  daniel
   Revision 1.31  1998/10/14 11:01:21  daniel

+ 9 - 3
compiler/symppu.inc

@@ -72,7 +72,7 @@
       end;
       end;
 
 
 
 
-    procedure writecontainer(var p:tstringcontainer;id:byte;hold:boolean);
+    procedure writecontainer(var p:tstringcontainer;id:byte;hold,strippath:boolean);
       var
       var
         hcontainer : tstringcontainer;
         hcontainer : tstringcontainer;
         s          : string;
         s          : string;
@@ -82,7 +82,10 @@
         while not p.empty do
         while not p.empty do
          begin
          begin
            s:=p.get;
            s:=p.get;
-           current_ppu^.putstring(s);
+           if strippath then
+            current_ppu^.putstring(SplitFileName(s))
+           else
+            current_ppu^.putstring(s);
            if hold then
            if hold then
             hcontainer.insert(s);
             hcontainer.insert(s);
          end;
          end;
@@ -443,7 +446,10 @@
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.21  1998-10-14 10:45:10  pierre
+  Revision 1.22  1998-10-14 13:38:24  peter
+    * fixed path with staticlib/objects in ppufiles
+
+  Revision 1.21  1998/10/14 10:45:10  pierre
     * ppu problems for m68k fixed (at least in cross compiling)
     * ppu problems for m68k fixed (at least in cross compiling)
     * one last memory leak for sysamiga fixed
     * one last memory leak for sysamiga fixed
     * the amiga RTL compiles now completely !!
     * the amiga RTL compiles now completely !!