Boost logo

Boost-Commit :

From: roland.schwarz_at_[hidden]
Date: 2007-09-02 14:37:16


Author: speedsnail
Date: 2007-09-02 14:37:14 EDT (Sun, 02 Sep 2007)
New Revision: 39107
URL: http://svn.boost.org/trac/boost/changeset/39107

Log:
Changed library naming convention for mingw and cygwin. For details see comment in file. Also should resolve Ticket #1058 .
Text files modified:
   trunk/tools/build/v2/tools/gcc.jam | 26 ++++++++++++++++++++++++--
   1 files changed, 24 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/tools/gcc.jam
==============================================================================
--- trunk/tools/build/v2/tools/gcc.jam (original)
+++ trunk/tools/build/v2/tools/gcc.jam 2007-09-02 14:37:14 EDT (Sun, 02 Sep 2007)
@@ -3,6 +3,7 @@
 # Copyright 2002-2003 Vladimir Prus.
 # Copyright (c) 2005 Reece H. Dunn.
 # Copyright 2006 Ilya Sokolov.
+# Copyright 2007 Roland Schwarz
 #
 # Distributed under the Boost Software License, Version 1.0.
 # (See accompanying file LICENSE_1_0.txt or copy at
@@ -38,14 +39,35 @@
 generators.override gcc.prebuilt : builtin.prebuilt ;
 generators.override gcc.searched-lib-generator : searched-lib-generator ;
 
+# Target naming is determined by types/lib.jam and the settings below this
+# comment.
+#
+# On *nix:
+# libxxx.a static library
+# libxxx.so shared library
+#
+# On windows (mingw):
+# libxxx.lib static library
+# xxx.dll DLL
+# xxx.lib import library
+#
+# On windows (cygwin) i.e. <target-os>cygwin
+# libxxx.a static library
+# xxx.dll DLL
+# libxxx.dll.a import library
+#
+# Note: user can always override by using the <tag>@rule
+# This settings have been choosen, so that mingw
+# is in line with msvc naming conventions. For
+# cygwin the cygwin naming convention has been choosen.
 
 # Make the "o" suffix used for gcc toolset on all
 # platforms
 type.set-generated-target-suffix OBJ : <toolset>gcc : o ;
-type.set-generated-target-suffix STATIC_LIB : <toolset>gcc : a ;
+type.set-generated-target-suffix STATIC_LIB : <toolset>gcc <target-os>cygwin : a ;
 
 type.set-generated-target-suffix IMPORT_LIB : <toolset>gcc <target-os>cygwin : dll.a ;
-type.set-generated-target-suffix IMPORT_LIB : <toolset>gcc <target-os>windows : a ;
+type.set-generated-target-prefix IMPORT_LIB : <toolset>gcc <target-os>cygwin : lib ;
 
 import rc ;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk