2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Attempt not to build shared libs on Cray, since they're not supported.

[SVN r17157]
This commit is contained in:
Dave Abrahams
2003-02-01 22:14:24 +00:00
parent 65e25acd8b
commit 49f20dcfe9
2 changed files with 26 additions and 16 deletions

View File

@@ -119,8 +119,16 @@ rule dll-files ( module implib ? : sources * : target-type ? )
INCLUDES $(<[1]) : $(<[2-]) ;
INCLUDES $(<[2-]) : $(<[1]) ;
}
target-type ?= DLL ;
main-from-objects $(<) : [ Objects $(>) ] : $(target-type) ;
if [ MATCH CRAY.* : $(JAMUNAME[-1]) ] # no shared libs on cray
{
NOTFILE $(<) ;
}
else
{
main-from-objects $(<) : [ Objects $(>) ] : $(target-type) ;
}
}
# template: modifier function
@@ -1876,17 +1884,14 @@ gGENERATOR_FUNCTION(DLL) = dll-files ;
gIS_DEPENDENCY(DLL) = TRUE ;
rule dll ( target : sources + : requirements * : default-build * )
{
if $(JAMUNAME[1]) != sn9626 # no shared libs on cray
if $(JAMUNAME[1]) = OpenBSD
{
if $(JAMUNAME[1]) = OpenBSD
if ! [ get-values <dllversion> : $(requirements) ]
{
if ! [ get-values <dllversion> : $(requirements) ]
{
requirements += <dllversion>0.0 ;
}
requirements += <dllversion>0.0 ;
}
declare-local-target $(target) : $(sources) : $(requirements) : $(default-build) : DLL ;
}
declare-local-target $(target) : $(sources) : $(requirements) : $(default-build) : DLL ;
}
# Declare a statically-linked library target.

View File

@@ -119,8 +119,16 @@ rule dll-files ( module implib ? : sources * : target-type ? )
INCLUDES $(<[1]) : $(<[2-]) ;
INCLUDES $(<[2-]) : $(<[1]) ;
}
target-type ?= DLL ;
main-from-objects $(<) : [ Objects $(>) ] : $(target-type) ;
if [ MATCH CRAY.* : $(JAMUNAME[-1]) ] # no shared libs on cray
{
NOTFILE $(<) ;
}
else
{
main-from-objects $(<) : [ Objects $(>) ] : $(target-type) ;
}
}
# template: modifier function
@@ -1876,17 +1884,14 @@ gGENERATOR_FUNCTION(DLL) = dll-files ;
gIS_DEPENDENCY(DLL) = TRUE ;
rule dll ( target : sources + : requirements * : default-build * )
{
if $(JAMUNAME[1]) != sn9626 # no shared libs on cray
if $(JAMUNAME[1]) = OpenBSD
{
if $(JAMUNAME[1]) = OpenBSD
if ! [ get-values <dllversion> : $(requirements) ]
{
if ! [ get-values <dllversion> : $(requirements) ]
{
requirements += <dllversion>0.0 ;
}
requirements += <dllversion>0.0 ;
}
declare-local-target $(target) : $(sources) : $(requirements) : $(default-build) : DLL ;
}
declare-local-target $(target) : $(sources) : $(requirements) : $(default-build) : DLL ;
}
# Declare a statically-linked library target.