mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Let sun compiler does not get gcc specific flags that will break the build
This commit is contained in:
parent
4f0a1e1ef1
commit
70964d806c
18
Jamconfig.in
18
Jamconfig.in
@ -55,12 +55,22 @@ EDE_TIPS_DIR ?= "$(datadir)/tips" ;
|
|||||||
OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ;
|
OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ;
|
||||||
DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ;
|
DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ;
|
||||||
|
|
||||||
# some C libraries have issues with C++ when given '-pedantic' flag, so
|
# FIXME: a quick hack to work everything on SunStudio
|
||||||
# setting 'jam -sPEDANTIC=""' will allow compilation
|
if $(SUN_COMPILER) {
|
||||||
PEDANTIC = "-pedantic" ;
|
WALL ?= "+w2" ;
|
||||||
|
PEDANTIC ?= ;
|
||||||
|
WNO_LONG_LONG ?= ;
|
||||||
|
} else {
|
||||||
|
# gcc assumed
|
||||||
|
WALL ?= "-Wall" ;
|
||||||
|
# some C libraries have issues with C++ when given '-pedantic' flag, so
|
||||||
|
# setting 'jam -sPEDANTIC=""' will allow compilation
|
||||||
|
PEDANTIC ?= "-pedantic" ;
|
||||||
|
WNO_LONG_LONG ?= "-Wno-long-long" ;
|
||||||
|
}
|
||||||
|
|
||||||
# global flags used to be passed to every target
|
# global flags used to be passed to every target
|
||||||
GLOBALFLAGS ?= -Wall $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ;
|
GLOBALFLAGS ?= $(WALL) $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ;
|
||||||
STDLIB ?= -lstdc++ ;
|
STDLIB ?= -lstdc++ ;
|
||||||
|
|
||||||
# Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when
|
# Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when
|
||||||
|
6
Jamrules
6
Jamrules
@ -51,6 +51,12 @@ actions quietly Help
|
|||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# a hack for Sun compiler
|
||||||
|
# FIXME: let configure figure these things
|
||||||
|
if $(SUN_COMPILER) {
|
||||||
|
GLOBALFLAGS = [ RemoveFlag "-g3" : $(GLOBALFLAGS) ] ;
|
||||||
|
}
|
||||||
|
|
||||||
Help help ;
|
Help help ;
|
||||||
NotFile help ;
|
NotFile help ;
|
||||||
Always help ;
|
Always help ;
|
||||||
|
Loading…
Reference in New Issue
Block a user