From 96cc9f7650e5af28957dcfed202cf8011c067fc3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 Jun 2010 23:26:32 +0200 Subject: partially fixed on SPARC Solaris 8 --- makefiles/gmake/compiler.mk | 6 ++++-- makefiles/gmake/platform.mk | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'makefiles') diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk index 85414b0..8e9c978 100644 --- a/makefiles/gmake/compiler.mk +++ b/makefiles/gmake/compiler.mk @@ -27,7 +27,7 @@ GCC_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-minor-ver # -Wunreachable-code: doesn't work # -Wno-div-by-zero: we get NaN and friend over macros, so need for funny tricks :-) # -Wstrict-overflow=5 is relatively new, later maybe -# -fstack-protector or -fstack-protector-all: should be used, but U +# -fstack-protector or -fstack-protector-all: should be used, but I # have currently big problems to get it around compiler gcc and -lssl # probing! FIXME later # -fstack-protector-all: does something funny to the shared objects.. @@ -35,6 +35,8 @@ GCC_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-minor-ver # everything implied by -Wall is not explicitly specified (gcc 4.2.3) # TODO: reenable -O2 # -Waggregate-return: is for K&R code and mostly useless nowadays +# TODO: snprintf Solaris 8 and cygwin croaks on -Wfloat-equal, compilers are +# too old for diagnostic pragmas, drop -Wfloat-equal for now # compilation flags and compilers COMMON_COMPILE_FLAGS = \ @@ -43,7 +45,7 @@ COMMON_COMPILE_FLAGS = \ -pedantic -Wall -Werror \ -Wunused -Wno-import \ -Wformat -Wformat-y2k -Wformat-nonliteral -Wformat-security -Wformat-y2k \ - -Wswitch-enum -Wunknown-pragmas -Wfloat-equal \ + -Wswitch-enum -Wunknown-pragmas \ -Wundef -Wshadow -Wpointer-arith \ -Wcast-qual -Wcast-align \ -Wwrite-strings \ diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk index aaa8846..b081a59 100644 --- a/makefiles/gmake/platform.mk +++ b/makefiles/gmake/platform.mk @@ -69,8 +69,16 @@ endif ifeq "$(PLATFORM)" "LINUX" LIBS_DL = -ldl else +ifeq "$(PLATFORM)" "SUNOS" +ifeq "$(OS_MAJOR_VERSION)" "5" +ifeq "$(OS_MINOR_VERSION)" "8" +LIBS_DL = -ldl +endif +endif +else LIBS_DL = endif +endif # i18n, gettext/libintl ####################### -- cgit v1.2.3-54-g00ecf