* mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
mlib-tgt-lynxos.adb (DLL_Prefix): New function
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106953
138bc75d-0d04-0410-961f-
82ee72b054a4
-- --
-- B o d y --
-- --
--- Copyright (C) 2003-2005, Ada Core Technologies, Inc. --
+-- Copyright (C) 2003-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- static, dynamic or relocatable libraries.
--- This is the AIX version of the body.
+-- This is the AIX version of the body
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
-with GNAT.OS_Lib; use GNAT.OS_Lib;
with MLib.Fil;
with MLib.Utl;
with Namet; use Namet;
-with Osint; use Osint;
with Opt;
with Output; use Output;
with Prj.Com;
Write_Line (Lib_File);
end if;
- -- Look for -lgnarl in Options. If found, set the thread options.
+ -- Look for -lgnarl in Options. If found, set the thread options
for J in Options'Range loop
if Options (J).all = "-lgnarl" then
return "a";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2001-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 2001-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- static, dynamic and shared libraries.
--- This is the Darwin version of the body.
+-- This is the Darwin version of the body
with MLib.Fil;
with MLib.Utl;
return "dylib";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2003-2005, Ada Core Technologies, Inc. --
+-- Copyright (C) 2003-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- libraries (static only on HP-UX).
--- This is the HP-UX version of the body.
+-- This is the HP-UX version of the body
with MLib.Fil;
with MLib.Utl;
return "sl";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2003-2005, Ada Core Technologies, Inc. --
+-- Copyright (C) 2003-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- static, dynamic and shared libraries.
--- This is the IRIX version of the body.
+-- This is the IRIX version of the body
with MLib.Fil;
with MLib.Utl;
return "so";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2001-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 2001-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- static, dynamic and shared libraries.
--- This is the GNU/Linux version of the body.
+-- This is the GNU/Linux version of the body
with MLib.Fil;
with MLib.Utl;
return "so";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
return "";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- This is the Windows version of the body. Works only with GCC versions
-- supporting the "-shared" option.
-with GNAT.OS_Lib; use GNAT.OS_Lib;
-
with Namet; use Namet;
with Opt;
with Output; use Output;
return "dll";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
return "so";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2005 Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2005 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- This package provides a set of target dependent routines to build
-- static, dynamic and shared libraries.
--- This is the True64 version of the body.
+-- This is the True64 version of the body
with MLib.Fil;
with MLib.Utl;
return "so";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
with Ada.Characters.Handling; use Ada.Characters.Handling;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
-with GNAT.OS_Lib; use GNAT.OS_Lib;
with MLib.Fil;
with MLib.Utl;
return "exe";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
with Ada.Characters.Handling; use Ada.Characters.Handling;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
-with GNAT.OS_Lib; use GNAT.OS_Lib;
with MLib.Fil;
with MLib.Utl;
return "exe";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
return "";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- B o d y --
-- --
--- Copyright (C) 2001-2005, Ada Core Technologies, Inc. --
+-- Copyright (C) 2001-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
return "";
end DLL_Ext;
+ ----------------
+ -- DLL_Prefix --
+ ----------------
+
+ function DLL_Prefix return String is
+ begin
+ return "lib";
+ end DLL_Prefix;
+
--------------------
-- Dynamic_Option --
--------------------
-- --
-- S p e c --
-- --
--- Copyright (C) 2001-2005, Ada Core Technologies, Inc. --
+-- Copyright (C) 2001-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- System dependent object extension, without leadien dot.
-- On Unix, returns "o".
+ function DLL_Prefix return String;
+ -- System dependent dynamic library prefix.
+ -- On Windows, returns "". On other platforms, returns "lib".
+
function DLL_Ext return String;
-- System dependent dynamic library extension, without leading dot.
-- On Windows, returns "dll". On Unix, usually returns "so", but not