File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,23 @@ EDE_TIPS_DIR ?= "$(datadir)/tips" ;
55
55
OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ;
56
56
DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ;
57
57
58
- # some C libraries have issues with C++ when given '-pedantic' flag, so
59
- # setting 'jam -sPEDANTIC=""' will allow compilation
60
- PEDANTIC = "-pedantic" ;
58
+ # FIXME: a quick hack to work everything on SunStudio
59
+ if $(SUN_COMPILER) {
60
+ WALL ?= "+w2" ;
61
+ PEDANTIC ?= ;
62
+ WNO_LONG_LONG ?= ;
63
+ } else {
64
+ # gcc assumed
65
+ WALL ?= "-Wall" ;
66
+ # some C libraries have issues with C++ when given '-pedantic' flag, so
67
+ # setting 'jam -sPEDANTIC=""' will allow compilation
68
+ PEDANTIC ?= "-pedantic" ;
69
+ WNO_LONG_LONG ?= "-Wno-long-long" ;
70
+ }
61
71
62
72
# global flags used to be passed to every target
63
- GLOBALFLAGS ?= -Wall $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ;
64
- STDLIB ?= -lstdc++ ;
73
+ GLOBALFLAGS ?= $(WALL) $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ;
74
+ STDLIB ?= -lstdc++ ;
65
75
66
76
# Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when
67
77
# edelib is compiled as shared library (or when is linked with some shared library)
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ actions quietly Help
51
51
echo ""
52
52
}
53
53
54
+ # a hack for Sun compiler
55
+ # FIXME: let configure figure these things
56
+ if $(SUN_COMPILER) {
57
+ GLOBALFLAGS = [ RemoveFlag "-g3" : $(GLOBALFLAGS) ] ;
58
+ }
59
+
54
60
Help help ;
55
61
NotFile help ;
56
62
Always help ;
You can’t perform that action at this time.
0 commit comments