From d1decc21dd12c84b57cd27205e9f82164f6673e4 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 8 May 1998 09:21:20 +0000 Subject: [PATCH] * Added missing -Fl message to messages file. * Corrected mangling of file names when doing Linklib * -Fl now actually WORKS. * Librarysearchpath is now a field in linker object. --- compiler/link.pas | 29 ++- compiler/optione.msg | 1 + compiler/optmsg.inc | 413 ++++++++++++++++++++++--------------------- compiler/scandir.inc | 10 +- 4 files changed, 243 insertions(+), 210 deletions(-) diff --git a/compiler/link.pas b/compiler/link.pas index 4a9a4a8032..afbaa4a337 100644 --- a/compiler/link.pas +++ b/compiler/link.pas @@ -34,6 +34,7 @@ Type ObjectFiles, SharedLibFiles, StaticLibFiles : TStringContainer; + LibrarySearchPath, { Search path for libraries } ExeName, { FileName of the exe to be created } SharedLibName, StaticLibName, { FileName of the lib to be created } @@ -100,8 +101,8 @@ begin ExeName:=''; SharedLibName:=''; StaticLibName:=''; - LibrarySearchPath:=''; ObjectSearchPath:=''; + LibrarySearchPath:=''; {$ifdef linux} DynamicLinker:='/lib/ld-linux.so.1'; {$else} @@ -186,7 +187,7 @@ var begin if pos('.',s)=0 then s:=s+ext; - s:=FixFileName(s); +// s:=FixFileName(s); if FileExists(s) then begin FindLibraryFile:=s; @@ -342,6 +343,21 @@ begin if Strip then LinkOptions:=LinkOptions+target_link.stripopt; + S2:=LibrarySearchPath; + Writeln ('Librarysearchpath : ',S2); + Repeat + I:=Pos(';',S2); + If I<>0 then + begin + S:=Copy(S2,1,I-1); + Delete (S2,1,I); + end + else + S:=S2; + If S<>'' then + LinkOptions:=LinkOptions+' -L'+s; + until S=''; + { Write used files and libraries } WriteResponseFile; @@ -352,6 +368,7 @@ begin Replace(s,'$EXE',exename); Replace(s,'$OPT',LinkOptions); Replace(s,'$RES',inputdir+LinkResName); + Writeln ('Linker options : ',s); success:=DoExec(FindLinker,s,true,false); {Bind} @@ -431,7 +448,13 @@ end; end. { $Log$ - Revision 1.6 1998-05-06 09:26:49 peter + Revision 1.7 1998-05-08 09:21:20 michael + * Added missing -Fl message to messages file. + * Corrected mangling of file names when doing Linklib + * -Fl now actually WORKS. + * Librarysearchpath is now a field in linker object. + + Revision 1.6 1998/05/06 09:26:49 peter * fixed ld call with shell Revision 1.4 1998/05/04 17:54:25 peter diff --git a/compiler/optione.msg b/compiler/optione.msg index a4d3988324..0e4eb9dcb2 100644 --- a/compiler/optione.msg +++ b/compiler/optione.msg @@ -67,6 +67,7 @@ Report bugs,suggestions etc to: *L2Fr_ search path for the error message file **2Fi_adds to include path **2Fl_adds to library path +*L2FL_uses as dynamic linker **2Fu_adds to unit path **1k_Pass to the linker **1L_set language diff --git a/compiler/optmsg.inc b/compiler/optmsg.inc index 7e42a8f9b3..e1364c3af4 100644 --- a/compiler/optmsg.inc +++ b/compiler/optmsg.inc @@ -1,4 +1,4 @@ -const optiontxt : array[1..04738] of char=( +const optiontxt : array[1..04774] of char=( ' ','[','o','p','t','i','o','n','s',']',' ','<','i','n','p', 'u','t','f','i','l','e','>',' ','[','o','p','t','i','o','n', 's',']',#000,'O','n','l','y',' ','o','n','e',' ','s','o','u', @@ -111,207 +111,210 @@ const optiontxt : array[1..04738] of char=( ' ','<','x','>',' ','t','o',' ','i','n','c','l','u','d','e', ' ','p','a','t','h',#000,'*','*','2','F','l','<','x','>','_', 'a','d','d','s',' ','<','x','>',' ','t','o',' ','l','i','b', - 'r','a','r','y',' ','p','a','t','h',#000,'*','*','2','F','u', - '<','x','>','_','a','d','d','s',' ','<','x','>',' ','t','o', - ' ','u','n','i','t',' ','p','a','t','h',#000,'*','*','1','k', - '<','x','>','_','P','a','s','s',' ','<','x','>',' ','t','o', - ' ','t','h','e',' ','l','i','n','k','e','r',#000,'*','*','1', - 'L','_','s','e','t',' ','l','a','n','g','u','a','g','e',#000, - '*','*','2','L','D','_','g','e','r','m','a','n',#000,'*','*', - '2','L','E','_','e','n','g','l','i','s','h',#000,'*','*','1', - 'l','_','w','r','i','t','e',' ','l','o','g','o',#000,'*','*', - '1','i','_','i','n','f','o','r','m','a','t','i','o','n',#000, - '*','*','1','n','_','d','o','n',#039,'t',' ','r','e','a','d', - ' ','t','h','e',' ','d','e','f','a','u','l','t',' ','c','o', - 'n','f','i','g',' ','f','i','l','e',#000,'*','*','1','o','<', - 'x','>','_','c','h','a','n','g','e',' ','t','h','e',' ','n', - 'a','m','e',' ','o','f',' ','t','h','e',' ','e','x','e','c', - 'u','t','a','b','l','e',' ','p','r','o','d','u','c','e','d', - ' ','t','o',' ','<','x','>',#000,'*','*','1','p','g','_','g', - 'e','n','e','r','a','t','e',' ','p','r','o','f','i','l','e', - ' ','c','o','d','e',' ','f','o','r',' ','g','p','r','o','f', - #000,'*','L','1','P','_','u','s','e',' ','p','i','p','e','s', - ' ','i','n','s','t','e','a','d',' ','o','f',' ','c','r','e', - 'a','t','i','n','g',' ','t','e','m','p','o','r','a','r','y', - ' ','a','s','s','e','m','b','l','e','r',' ','f','i','l','e', - 's',#000,'*','*','1','S','_','s','y','n','t','a','x',' ','o', - 'p','t','i','o','n','s',#000,'*','*','2','S','2','_','s','w', - 'i','t','c','h',' ','s','o','m','e',' ','D','e','l','p','h', - 'i',' ','2',' ','e','x','t','e','n','s','i','o','n',' ','o', - 'n',#000,'*','*','2','S','c','_','s','u','p','p','o','r','t', - 's',' ','o','p','e','r','a','t','o','r','s',' ','l','i','k', - 'e',' ','C',' ','(','*','=',',','+','=',',','/','=',' ','a', - 'n','d',' ','-','=',')',#000,'*','*','2','S','d','_','c','o', - 'm','p','i','l','e','r',' ','d','i','s','p','o','s','e','s', - ' ','a','s','m',' ','l','i','s','t','s',' ','(','u','s','e', - 's',' ','l','e','s','s',' ','m','e','m','o','r','y',' ','b', - 'u','t',' ','m','u','c','h',' ','s','l','o','w','e','r',')', - #000,'*','*','2','S','e','_','c','o','m','p','i','l','e','r', - ' ','s','t','o','p','s',' ','a','f','t','e','r',' ','t','h', - 'e',' ','f','i','r','s','t',' ','e','r','r','o','r',#000,'*', - '*','2','S','g','_','a','l','l','o','w','s',' ','L','A','B', - 'E','L',' ','a','n','d',' ','G','O','T','O',#000,'*','*','2', - 'S','i','_','s','u','p','p','o','r','t',' ','C','+','+',' ', - 's','t','l','y','e','d',' ','I','N','L','I','N','E',#000,'*', - '*','2','S','m','_','s','u','p','p','o','r','t',' ','m','a', - 'c','r','o','s',' ','l','i','k','e',' ','C',' ','(','g','l', - 'o','b','a','l',')',#000,'*','*','2','S','o','_','t','r','i', - 'e','s',' ','t','o',' ','b','e',' ','T','P','/','B','P',' ', - '7','.','0',' ','c','o','m','p','a','t','i','b','l','e',#000, - '*','*','2','S','s','_','c','o','n','s','t','r','u','c','t', - 'o','r',' ','n','a','m','e',' ','m','u','s','t',' ','b','e', - ' ','i','n','i','t',' ','(','d','e','s','t','r','u','c','t', - 'o','r',' ','m','u','s','t',' ','b','e',' ','d','o','n','e', - ')',#000,'*','*','2','S','t','_','a','l','l','o','w','s',' ', - 's','t','a','t','i','c',' ','k','e','y','w','o','r','d',' ', - 'i','n',' ','o','b','j','e','c','t','s',#000,'*','*','1','s', - '_','d','o','n',#039,'t',' ','c','a','l','l',' ','a','s','s', - 'e','m','b','l','e','r',' ','a','n','d',' ','l','i','n','k', - 'e','r',' ','(','o','n','l','y',' ','w','i','t','h',' ','-', - 'a',')',#000,'*','*','1','T','<','x','>','_','T','a','r','g', - 'e','t',' ','o','p','e','r','a','t','i','n','g',' ','s','y', - 's','t','e','m',#000,'3','*','2','T','G','O','3','2','V','1', - '_','v','e','r','s','i','o','n',' ','1',' ','o','f',' ','D', - 'J',' ','D','e','l','o','r','i','e',' ','D','O','S',' ','e', - 'x','t','e','n','d','e','r',#000,'3','*','2','T','G','O','3', - '2','V','2','_','v','e','r','s','i','o','n',' ','2',' ','o', - 'f',' ','D','J',' ','D','e','l','o','r','i','e',' ','D','O', - 'S',' ','e','x','t','e','n','d','e','r',#000,'3','*','2','T', - 'L','I','N','U','X','_','L','i','n','u','x',#000,'3','*','2', - 'T','O','S','2','_','O','S','/','2',' ','2','.','x',#000,'3', - '*','2','T','W','i','n','3','2','_','W','i','n','d','o','w', - 's',' ','3','2',' ','B','i','t',#000,'6','*','2','T','A','M', - 'I','G','A','_','C','o','m','m','o','d','o','r','e',' ','A', - 'm','i','g','a',#000,'6','*','2','T','A','T','A','R','I','_', - 'A','t','a','r','i',' ','S','T','/','S','T','e','/','T','T', - #000,'6','*','2','T','M','A','C','O','S','_','M','a','c','i', - 'n','t','o','s','h',' ','m','6','8','k',#000,'6','*','2','T', - 'L','I','N','U','X','_','L','i','n','u','x','-','6','8','k', - #000,'*','*','1','u','<','x','>','_','u','n','d','e','f','i', - 'n','e','s',' ','t','h','e',' ','s','y','m','b','o','l',' ', - '<','x','>',#000,'*','*','1','U','_','u','n','i','t',' ','o', - 'p','t','i','o','n','s',#000,'*','*','2','U','l','s','_','m', - 'a','k','e',' ','s','t','a','t','i','c',' ','l','i','b','r', - 'a','r','y',' ','f','r','o','m',' ','u','n','i','t',#000,'*', - '*','2','U','l','d','_','m','a','k','e',' ','d','y','n','a', - 'm','i','c',' ','l','i','b','r','a','r','y',' ','f','r','o', - 'm',' ','u','n','i','t',#000,'*','*','2','U','n','_','d','o', - 'n',#039,'t',' ','c','h','e','c','k',' ','t','h','e',' ','u', - 'n','i','t',' ','n','a','m','e',#000,'*','*','2','U','p','<', - 'x','>','_','s','a','m','e',' ','a','s',' ','-','F','u','<', - 'x','>',#000,'*','*','2','U','s','_','c','o','m','p','i','l', - 'e',' ','a',' ','s','y','s','t','e','m',' ','u','n','i','t', - #000,'*','*','1','v','<','x','>','_','B','e',' ','v','e','r', - 'b','o','s','e','.',' ','<','x','>',' ','i','s',' ','a',' ', - 'c','o','m','b','i','n','a','t','i','o','n',' ','o','f',' ', - 't','h','e',' ','f','o','l','l','o','w','i','n','g',' ','l', - 'e','t','t','e','r','s',' ',':',#000,'*','*','2','*','_','e', - ' ',':',' ','S','h','o','w',' ','e','r','r','o','r','s',' ', - '(','d','e','f','a','u','l','t',')',' ',' ',' ',' ',' ',' ', - ' ','d',' ',':',' ','S','h','o','w',' ','d','e','b','u','g', - ' ','i','n','f','o',#000,'*','*','2','*','_','w',' ',':',' ', - 'S','h','o','w',' ','w','a','r','n','i','n','g','s',' ',' ', - ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','u',' ', - ':',' ','S','h','o','w',' ','u','s','e','d',' ','f','i','l', - 'e','s',#000,'*','*','2','*','_','n',' ',':',' ','S','h','o', - 'w',' ','n','o','t','e','s',' ',' ',' ',' ',' ',' ',' ',' ', - ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','t',' ',':',' ','S', - 'h','o','w',' ','t','r','i','e','d',' ','f','i','l','e','s', - #000,'*','*','2','*','_','h',' ',':',' ','S','h','o','w',' ', - 'h','i','n','t','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', - ' ',' ',' ',' ',' ',' ',' ',' ','m',' ',':',' ','S','h','o', - 'w',' ','d','e','f','i','n','e','d',' ','m','a','c','r','o', - 's',#000,'*','*','2','*','_','i',' ',':',' ','S','h','o','w', - ' ','g','e','n','e','r','a','l',' ','i','n','f','o',' ',' ', - ' ',' ',' ',' ',' ',' ',' ',' ',' ','p',' ',':',' ','S','h', - 'o','w',' ','c','o','m','p','i','l','e','d',' ','p','r','o', - 'c','e','d','u','r','e','s',#000,'*','*','2','*','_','l',' ', - ':',' ','S','h','o','w',' ','l','i','n','e','n','u','m','b', - 'e','r','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', - 'c',' ',':',' ','S','h','o','w',' ','c','o','n','d','i','t', - 'i','o','n','a','l','s',#000,'*','*','2','*','_','a',' ',':', - ' ','S','h','o','w',' ','e','v','e','r','y','t','h','i','n', - 'g',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','0', - ' ',':',' ','S','h','o','w',' ','n','o','t','h','i','n','g', - ' ','(','e','x','c','e','p','t',' ','e','r','r','o','r','s', - ')',#000,'*','*','1','X','_','e','x','e','c','u','t','a','b', - 'l','e',' ','o','p','t','i','o','n','s',#000,'*','L','2','X', - 'c','_','l','i','n','k',' ','w','i','t','h',' ','t','h','e', - ' ','c',' ','l','i','b','r','a','r','y',#000,'*','*','2','X', - 's','_','s','t','r','i','p',' ','a','l','l',' ','s','y','m', - 'b','o','l','s',' ','f','r','o','m',' ','e','x','e','c','u', - 't','a','b','l','e',#000,'*','*','0','*','_','P','r','o','c', - 'e','s','s','o','r',' ','s','p','e','c','i','f','i','c',' ', - 'o','p','t','i','o','n','s',':',#000,'3','*','1','A','_','o', - 'u','t','p','u','t',' ','f','o','r','m','a','t',#000,'3','*', - '2','A','a','t','t','_','A','T','&','T',' ','a','s','s','e', - 'm','b','l','e','r',#000,'3','*','2','A','o','_','c','o','f', - 'f',' ','f','i','l','e',' ','u','s','i','n','g',' ','G','N', - 'U',' ','A','S',#000,'3','*','2','A','o','b','j','_','O','M', - 'F',' ','f','i','l','e',' ','u','s','i','n','g',' ','N','A', - 'S','M',#000,'3','*','2','A','n','a','s','m','_','c','o','f', - 'f',' ','f','i','l','e',' ','u','s','i','n','g',' ','N','A', - 'S','M',#000,'3','*','2','A','m','a','s','m','_','a','s','s', - 'e','m','b','l','e','r',' ','f','o','r',' ','t','h','e',' ', - 'M','i','c','r','o','s','o','f','t','/','B','o','r','l','a', - 'n','d','/','W','a','t','c','o','m',' ','a','s','s','e','m', - 'b','l','e','r',#000,'3','*','1','R','_','a','s','s','e','m', - 'b','l','e','r',' ','r','e','a','d','i','n','g',' ','s','t', - 'y','l','e',#000,'3','*','2','R','a','t','t','_','r','e','a', - 'd',' ','A','T','&','T',' ','s','t','y','l','e',' ','a','s', - 's','e','m','b','l','e','r',#000,'3','*','2','R','i','n','t', - 'e','l','_','r','e','a','d',' ','I','n','t','e','l',' ','s', - 't','y','l','e',' ','a','s','s','e','m','b','l','e','r',#000, - '3','*','2','R','d','i','r','e','c','t','_','c','o','p','y', - ' ','a','s','s','e','m','b','l','e','r',' ','t','e','x','t', - ' ','d','i','r','e','c','t','l','y',' ','t','o',' ','a','s', - 's','e','m','b','l','e','r',' ','f','i','l','e',#000,'3','*', - '1','O','_','o','p','t','i','m','i','z','a','t','i','o','n', - 's',#000,'3','*','2','O','a','_','s','i','m','p','l','e',' ', - 'o','p','t','i','m','i','z','a','t','i','o','n','s',#000,'3', - '*','2','O','g','_','o','p','t','i','m','i','z','e',' ','f', - 'o','r',' ','s','i','z','e',#000,'3','*','2','O','G','_','o', - 'p','t','i','m','i','z','e',' ','f','o','r',' ','t','i','m', - 'e',#000,'3','*','2','O','x','_','o','p','t','i','m','i','z', - 'e',' ','m','a','x','i','m','u','m',#000,'3','*','2','O','z', - '_','u','n','c','e','r','t','a','i','n',' ','o','p','t','i', - 'm','i','z','e','s',' ','(','s','e','e',' ','d','o','c','s', - ')',#000,'3','*','2','O','2','_','o','p','t','i','m','i','z', - 'e',' ','f','o','r',' ','t','h','e',' ','P','e','n','t','i', - 'u','m',' ','I','I',' ','(','t','m',')',#000,'3','*','2','O', - '3','_','o','p','t','i','m','i','z','e',' ','f','o','r',' ', - 't','h','e',' ','i','3','8','6',#000,'3','*','2','O','4','_', - 'o','p','t','i','m','i','z','e',' ','f','o','r',' ','t','h', - 'e',' ','i','4','8','6',#000,'3','*','2','O','5','_','o','p', - 't','i','m','i','z','e',' ','f','o','r',' ','t','h','e',' ', - 'P','e','n','t','i','u','m',' ','(','t','m',')',#000,'3','*', - '2','O','6','_','o','p','t','i','m','i','z','e',' ','f','o', - 'r',' ','t','h','e',' ','P','e','n','t','i','u','m','P','r', - 'o',' ','(','t','m',')',#000,'3','*','2','O','7','_','o','p', - 't','i','m','i','z','e',' ','f','o','r',' ','t','h','e',' ', - 'C','y','r','i','x',' ','6','x','8','6',#000,'3','*','2','O', - '8','_','o','p','t','i','m','i','z','e',' ','f','o','r',' ', - 't','h','e',' ','A','M','D',' ','K','6',#000,'6','*','1','A', - '_','o','u','t','p','u','t',' ','f','o','r','m','a','t',#000, - '6','*','2','A','g','a','s','_','G','N','U',' ','M','o','t', - 'o','r','o','l','a',' ','a','s','s','e','m','b','l','e','r', - #000,'6','*','2','A','o','_','U','N','I','X',' ','o','-','f', - 'i','l','e',#000,'6','*','2','A','m','_','S','t','a','n','d', - 'a','r','d',' ','M','o','t','o','r','o','l','a',' ','a','s', - 's','e','m','b','l','e','r',#000,'6','*','2','A','i','_','M', - 'I','T',' ','S','y','n','t','a','x',' ','(','o','l','d',' ', - 'G','A','S',')',#000,'6','*','1','O','_','o','p','t','i','m', - 'i','z','a','t','i','o','n','s',#000,'6','*','2','O','a','_', - 's','i','m','p','l','e',' ','o','p','t','i','m','i','z','a', - 't','i','o','n','s',#000,'6','*','2','O','g','_','o','p','t', - 'i','m','i','z','e',' ','f','o','r',' ','s','i','z','e',#000, - '6','*','2','O','G','_','o','p','t','i','m','i','z','e',' ', - 'f','o','r',' ','t','i','m','e',#000,'6','*','2','O','x','_', - 'o','p','t','i','m','i','z','e',' ','m','a','x','i','m','u', - 'm',#000,'6','*','2','O','2','_','t','a','r','g','e','t',' ', - 'i','s',' ','a',' ','M','C','6','8','0','2','0','+',' ','p', - 'r','o','c','e','s','s','o','r',#000,'*','*','1','*','_',#000, - '*','*','1','?','_','s','h','o','w','s',' ','t','h','i','s', - ' ','h','e','l','p',#000,'*','*','1','h','_','s','h','o','w', - 's',' ','t','h','i','s',' ','h','e','l','p',' ','w','i','t', - 'h','o','u','t',' ','w','a','i','t','i','n','g',#000); + 'r','a','r','y',' ','p','a','t','h',#000,'*','L','2','F','L', + '<','x','>','_','u','s','e','s',' ','<','x','>',' ','a','s', + ' ','d','y','n','a','m','i','c',' ','l','i','n','k','e','r', + #000,'*','*','2','F','u','<','x','>','_','a','d','d','s',' ', + '<','x','>',' ','t','o',' ','u','n','i','t',' ','p','a','t', + 'h',#000,'*','*','1','k','<','x','>','_','P','a','s','s',' ', + '<','x','>',' ','t','o',' ','t','h','e',' ','l','i','n','k', + 'e','r',#000,'*','*','1','L','_','s','e','t',' ','l','a','n', + 'g','u','a','g','e',#000,'*','*','2','L','D','_','g','e','r', + 'm','a','n',#000,'*','*','2','L','E','_','e','n','g','l','i', + 's','h',#000,'*','*','1','l','_','w','r','i','t','e',' ','l', + 'o','g','o',#000,'*','*','1','i','_','i','n','f','o','r','m', + 'a','t','i','o','n',#000,'*','*','1','n','_','d','o','n',#039, + 't',' ','r','e','a','d',' ','t','h','e',' ','d','e','f','a', + 'u','l','t',' ','c','o','n','f','i','g',' ','f','i','l','e', + #000,'*','*','1','o','<','x','>','_','c','h','a','n','g','e', + ' ','t','h','e',' ','n','a','m','e',' ','o','f',' ','t','h', + 'e',' ','e','x','e','c','u','t','a','b','l','e',' ','p','r', + 'o','d','u','c','e','d',' ','t','o',' ','<','x','>',#000,'*', + '*','1','p','g','_','g','e','n','e','r','a','t','e',' ','p', + 'r','o','f','i','l','e',' ','c','o','d','e',' ','f','o','r', + ' ','g','p','r','o','f',#000,'*','L','1','P','_','u','s','e', + ' ','p','i','p','e','s',' ','i','n','s','t','e','a','d',' ', + 'o','f',' ','c','r','e','a','t','i','n','g',' ','t','e','m', + 'p','o','r','a','r','y',' ','a','s','s','e','m','b','l','e', + 'r',' ','f','i','l','e','s',#000,'*','*','1','S','_','s','y', + 'n','t','a','x',' ','o','p','t','i','o','n','s',#000,'*','*', + '2','S','2','_','s','w','i','t','c','h',' ','s','o','m','e', + ' ','D','e','l','p','h','i',' ','2',' ','e','x','t','e','n', + 's','i','o','n',' ','o','n',#000,'*','*','2','S','c','_','s', + 'u','p','p','o','r','t','s',' ','o','p','e','r','a','t','o', + 'r','s',' ','l','i','k','e',' ','C',' ','(','*','=',',','+', + '=',',','/','=',' ','a','n','d',' ','-','=',')',#000,'*','*', + '2','S','d','_','c','o','m','p','i','l','e','r',' ','d','i', + 's','p','o','s','e','s',' ','a','s','m',' ','l','i','s','t', + 's',' ','(','u','s','e','s',' ','l','e','s','s',' ','m','e', + 'm','o','r','y',' ','b','u','t',' ','m','u','c','h',' ','s', + 'l','o','w','e','r',')',#000,'*','*','2','S','e','_','c','o', + 'm','p','i','l','e','r',' ','s','t','o','p','s',' ','a','f', + 't','e','r',' ','t','h','e',' ','f','i','r','s','t',' ','e', + 'r','r','o','r',#000,'*','*','2','S','g','_','a','l','l','o', + 'w','s',' ','L','A','B','E','L',' ','a','n','d',' ','G','O', + 'T','O',#000,'*','*','2','S','i','_','s','u','p','p','o','r', + 't',' ','C','+','+',' ','s','t','l','y','e','d',' ','I','N', + 'L','I','N','E',#000,'*','*','2','S','m','_','s','u','p','p', + 'o','r','t',' ','m','a','c','r','o','s',' ','l','i','k','e', + ' ','C',' ','(','g','l','o','b','a','l',')',#000,'*','*','2', + 'S','o','_','t','r','i','e','s',' ','t','o',' ','b','e',' ', + 'T','P','/','B','P',' ','7','.','0',' ','c','o','m','p','a', + 't','i','b','l','e',#000,'*','*','2','S','s','_','c','o','n', + 's','t','r','u','c','t','o','r',' ','n','a','m','e',' ','m', + 'u','s','t',' ','b','e',' ','i','n','i','t',' ','(','d','e', + 's','t','r','u','c','t','o','r',' ','m','u','s','t',' ','b', + 'e',' ','d','o','n','e',')',#000,'*','*','2','S','t','_','a', + 'l','l','o','w','s',' ','s','t','a','t','i','c',' ','k','e', + 'y','w','o','r','d',' ','i','n',' ','o','b','j','e','c','t', + 's',#000,'*','*','1','s','_','d','o','n',#039,'t',' ','c','a', + 'l','l',' ','a','s','s','e','m','b','l','e','r',' ','a','n', + 'd',' ','l','i','n','k','e','r',' ','(','o','n','l','y',' ', + 'w','i','t','h',' ','-','a',')',#000,'*','*','1','T','<','x', + '>','_','T','a','r','g','e','t',' ','o','p','e','r','a','t', + 'i','n','g',' ','s','y','s','t','e','m',#000,'3','*','2','T', + 'G','O','3','2','V','1','_','v','e','r','s','i','o','n',' ', + '1',' ','o','f',' ','D','J',' ','D','e','l','o','r','i','e', + ' ','D','O','S',' ','e','x','t','e','n','d','e','r',#000,'3', + '*','2','T','G','O','3','2','V','2','_','v','e','r','s','i', + 'o','n',' ','2',' ','o','f',' ','D','J',' ','D','e','l','o', + 'r','i','e',' ','D','O','S',' ','e','x','t','e','n','d','e', + 'r',#000,'3','*','2','T','L','I','N','U','X','_','L','i','n', + 'u','x',#000,'3','*','2','T','O','S','2','_','O','S','/','2', + ' ','2','.','x',#000,'3','*','2','T','W','i','n','3','2','_', + 'W','i','n','d','o','w','s',' ','3','2',' ','B','i','t',#000, + '6','*','2','T','A','M','I','G','A','_','C','o','m','m','o', + 'd','o','r','e',' ','A','m','i','g','a',#000,'6','*','2','T', + 'A','T','A','R','I','_','A','t','a','r','i',' ','S','T','/', + 'S','T','e','/','T','T',#000,'6','*','2','T','M','A','C','O', + 'S','_','M','a','c','i','n','t','o','s','h',' ','m','6','8', + 'k',#000,'6','*','2','T','L','I','N','U','X','_','L','i','n', + 'u','x','-','6','8','k',#000,'*','*','1','u','<','x','>','_', + 'u','n','d','e','f','i','n','e','s',' ','t','h','e',' ','s', + 'y','m','b','o','l',' ','<','x','>',#000,'*','*','1','U','_', + 'u','n','i','t',' ','o','p','t','i','o','n','s',#000,'*','*', + '2','U','l','s','_','m','a','k','e',' ','s','t','a','t','i', + 'c',' ','l','i','b','r','a','r','y',' ','f','r','o','m',' ', + 'u','n','i','t',#000,'*','*','2','U','l','d','_','m','a','k', + 'e',' ','d','y','n','a','m','i','c',' ','l','i','b','r','a', + 'r','y',' ','f','r','o','m',' ','u','n','i','t',#000,'*','*', + '2','U','n','_','d','o','n',#039,'t',' ','c','h','e','c','k', + ' ','t','h','e',' ','u','n','i','t',' ','n','a','m','e',#000, + '*','*','2','U','p','<','x','>','_','s','a','m','e',' ','a', + 's',' ','-','F','u','<','x','>',#000,'*','*','2','U','s','_', + 'c','o','m','p','i','l','e',' ','a',' ','s','y','s','t','e', + 'm',' ','u','n','i','t',#000,'*','*','1','v','<','x','>','_', + 'B','e',' ','v','e','r','b','o','s','e','.',' ','<','x','>', + ' ','i','s',' ','a',' ','c','o','m','b','i','n','a','t','i', + 'o','n',' ','o','f',' ','t','h','e',' ','f','o','l','l','o', + 'w','i','n','g',' ','l','e','t','t','e','r','s',' ',':',#000, + '*','*','2','*','_','e',' ',':',' ','S','h','o','w',' ','e', + 'r','r','o','r','s',' ','(','d','e','f','a','u','l','t',')', + ' ',' ',' ',' ',' ',' ',' ','d',' ',':',' ','S','h','o','w', + ' ','d','e','b','u','g',' ','i','n','f','o',#000,'*','*','2', + '*','_','w',' ',':',' ','S','h','o','w',' ','w','a','r','n', + 'i','n','g','s',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', + ' ',' ',' ',' ','u',' ',':',' ','S','h','o','w',' ','u','s', + 'e','d',' ','f','i','l','e','s',#000,'*','*','2','*','_','n', + ' ',':',' ','S','h','o','w',' ','n','o','t','e','s',' ',' ', + ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', + ' ','t',' ',':',' ','S','h','o','w',' ','t','r','i','e','d', + ' ','f','i','l','e','s',#000,'*','*','2','*','_','h',' ',':', + ' ','S','h','o','w',' ','h','i','n','t','s',' ',' ',' ',' ', + ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','m', + ' ',':',' ','S','h','o','w',' ','d','e','f','i','n','e','d', + ' ','m','a','c','r','o','s',#000,'*','*','2','*','_','i',' ', + ':',' ','S','h','o','w',' ','g','e','n','e','r','a','l',' ', + 'i','n','f','o',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', + 'p',' ',':',' ','S','h','o','w',' ','c','o','m','p','i','l', + 'e','d',' ','p','r','o','c','e','d','u','r','e','s',#000,'*', + '*','2','*','_','l',' ',':',' ','S','h','o','w',' ','l','i', + 'n','e','n','u','m','b','e','r','s',' ',' ',' ',' ',' ',' ', + ' ',' ',' ',' ',' ',' ','c',' ',':',' ','S','h','o','w',' ', + 'c','o','n','d','i','t','i','o','n','a','l','s',#000,'*','*', + '2','*','_','a',' ',':',' ','S','h','o','w',' ','e','v','e', + 'r','y','t','h','i','n','g',' ',' ',' ',' ',' ',' ',' ',' ', + ' ',' ',' ',' ',' ','0',' ',':',' ','S','h','o','w',' ','n', + 'o','t','h','i','n','g',' ','(','e','x','c','e','p','t',' ', + 'e','r','r','o','r','s',')',#000,'*','*','1','X','_','e','x', + 'e','c','u','t','a','b','l','e',' ','o','p','t','i','o','n', + 's',#000,'*','L','2','X','c','_','l','i','n','k',' ','w','i', + 't','h',' ','t','h','e',' ','c',' ','l','i','b','r','a','r', + 'y',#000,'*','*','2','X','s','_','s','t','r','i','p',' ','a', + 'l','l',' ','s','y','m','b','o','l','s',' ','f','r','o','m', + ' ','e','x','e','c','u','t','a','b','l','e',#000,'*','*','0', + '*','_','P','r','o','c','e','s','s','o','r',' ','s','p','e', + 'c','i','f','i','c',' ','o','p','t','i','o','n','s',':',#000, + '3','*','1','A','_','o','u','t','p','u','t',' ','f','o','r', + 'm','a','t',#000,'3','*','2','A','a','t','t','_','A','T','&', + 'T',' ','a','s','s','e','m','b','l','e','r',#000,'3','*','2', + 'A','o','_','c','o','f','f',' ','f','i','l','e',' ','u','s', + 'i','n','g',' ','G','N','U',' ','A','S',#000,'3','*','2','A', + 'o','b','j','_','O','M','F',' ','f','i','l','e',' ','u','s', + 'i','n','g',' ','N','A','S','M',#000,'3','*','2','A','n','a', + 's','m','_','c','o','f','f',' ','f','i','l','e',' ','u','s', + 'i','n','g',' ','N','A','S','M',#000,'3','*','2','A','m','a', + 's','m','_','a','s','s','e','m','b','l','e','r',' ','f','o', + 'r',' ','t','h','e',' ','M','i','c','r','o','s','o','f','t', + '/','B','o','r','l','a','n','d','/','W','a','t','c','o','m', + ' ','a','s','s','e','m','b','l','e','r',#000,'3','*','1','R', + '_','a','s','s','e','m','b','l','e','r',' ','r','e','a','d', + 'i','n','g',' ','s','t','y','l','e',#000,'3','*','2','R','a', + 't','t','_','r','e','a','d',' ','A','T','&','T',' ','s','t', + 'y','l','e',' ','a','s','s','e','m','b','l','e','r',#000,'3', + '*','2','R','i','n','t','e','l','_','r','e','a','d',' ','I', + 'n','t','e','l',' ','s','t','y','l','e',' ','a','s','s','e', + 'm','b','l','e','r',#000,'3','*','2','R','d','i','r','e','c', + 't','_','c','o','p','y',' ','a','s','s','e','m','b','l','e', + 'r',' ','t','e','x','t',' ','d','i','r','e','c','t','l','y', + ' ','t','o',' ','a','s','s','e','m','b','l','e','r',' ','f', + 'i','l','e',#000,'3','*','1','O','_','o','p','t','i','m','i', + 'z','a','t','i','o','n','s',#000,'3','*','2','O','a','_','s', + 'i','m','p','l','e',' ','o','p','t','i','m','i','z','a','t', + 'i','o','n','s',#000,'3','*','2','O','g','_','o','p','t','i', + 'm','i','z','e',' ','f','o','r',' ','s','i','z','e',#000,'3', + '*','2','O','G','_','o','p','t','i','m','i','z','e',' ','f', + 'o','r',' ','t','i','m','e',#000,'3','*','2','O','x','_','o', + 'p','t','i','m','i','z','e',' ','m','a','x','i','m','u','m', + #000,'3','*','2','O','z','_','u','n','c','e','r','t','a','i', + 'n',' ','o','p','t','i','m','i','z','e','s',' ','(','s','e', + 'e',' ','d','o','c','s',')',#000,'3','*','2','O','2','_','o', + 'p','t','i','m','i','z','e',' ','f','o','r',' ','t','h','e', + ' ','P','e','n','t','i','u','m',' ','I','I',' ','(','t','m', + ')',#000,'3','*','2','O','3','_','o','p','t','i','m','i','z', + 'e',' ','f','o','r',' ','t','h','e',' ','i','3','8','6',#000, + '3','*','2','O','4','_','o','p','t','i','m','i','z','e',' ', + 'f','o','r',' ','t','h','e',' ','i','4','8','6',#000,'3','*', + '2','O','5','_','o','p','t','i','m','i','z','e',' ','f','o', + 'r',' ','t','h','e',' ','P','e','n','t','i','u','m',' ','(', + 't','m',')',#000,'3','*','2','O','6','_','o','p','t','i','m', + 'i','z','e',' ','f','o','r',' ','t','h','e',' ','P','e','n', + 't','i','u','m','P','r','o',' ','(','t','m',')',#000,'3','*', + '2','O','7','_','o','p','t','i','m','i','z','e',' ','f','o', + 'r',' ','t','h','e',' ','C','y','r','i','x',' ','6','x','8', + '6',#000,'3','*','2','O','8','_','o','p','t','i','m','i','z', + 'e',' ','f','o','r',' ','t','h','e',' ','A','M','D',' ','K', + '6',#000,'6','*','1','A','_','o','u','t','p','u','t',' ','f', + 'o','r','m','a','t',#000,'6','*','2','A','g','a','s','_','G', + 'N','U',' ','M','o','t','o','r','o','l','a',' ','a','s','s', + 'e','m','b','l','e','r',#000,'6','*','2','A','o','_','U','N', + 'I','X',' ','o','-','f','i','l','e',#000,'6','*','2','A','m', + '_','S','t','a','n','d','a','r','d',' ','M','o','t','o','r', + 'o','l','a',' ','a','s','s','e','m','b','l','e','r',#000,'6', + '*','2','A','i','_','M','I','T',' ','S','y','n','t','a','x', + ' ','(','o','l','d',' ','G','A','S',')',#000,'6','*','1','O', + '_','o','p','t','i','m','i','z','a','t','i','o','n','s',#000, + '6','*','2','O','a','_','s','i','m','p','l','e',' ','o','p', + 't','i','m','i','z','a','t','i','o','n','s',#000,'6','*','2', + 'O','g','_','o','p','t','i','m','i','z','e',' ','f','o','r', + ' ','s','i','z','e',#000,'6','*','2','O','G','_','o','p','t', + 'i','m','i','z','e',' ','f','o','r',' ','t','i','m','e',#000, + '6','*','2','O','x','_','o','p','t','i','m','i','z','e',' ', + 'm','a','x','i','m','u','m',#000,'6','*','2','O','2','_','t', + 'a','r','g','e','t',' ','i','s',' ','a',' ','M','C','6','8', + '0','2','0','+',' ','p','r','o','c','e','s','s','o','r',#000, + '*','*','1','*','_',#000,'*','*','1','?','_','s','h','o','w', + 's',' ','t','h','i','s',' ','h','e','l','p',#000,'*','*','1', + 'h','_','s','h','o','w','s',' ','t','h','i','s',' ','h','e', + 'l','p',' ','w','i','t','h','o','u','t',' ','w','a','i','t', + 'i','n','g',#000); diff --git a/compiler/scandir.inc b/compiler/scandir.inc index da346b5894..8024eb055b 100644 --- a/compiler/scandir.inc +++ b/compiler/scandir.inc @@ -637,7 +637,7 @@ const hs : string; begin skipspace; - hs:=FixFileName(readstring); + hs:=readstring; current_module^.linkSharedLibs.insert(hs); end; @@ -821,7 +821,13 @@ const { $Log$ - Revision 1.6 1998-05-04 17:54:28 peter + Revision 1.7 1998-05-08 09:21:20 michael + * Added missing -Fl message to messages file. + * Corrected mangling of file names when doing Linklib + * -Fl now actually WORKS. + * Librarysearchpath is now a field in linker object. + + Revision 1.6 1998/05/04 17:54:28 peter + smartlinking works (only case jumptable left todo) * redesign of systems.pas to support assemblers and linkers + Unitname is now also in the PPU-file, increased version to 14