summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-06-06 23:26:32 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-06-06 23:26:32 +0200
commit96cc9f7650e5af28957dcfed202cf8011c067fc3 (patch)
treef2a1a28e7bb35ca8caac18a6143fbb38b43e73c9 /makefiles
parent43c420729a2fd892bd8ec39331c1a5646a0bf7f6 (diff)
downloadwolfbones-96cc9f7650e5af28957dcfed202cf8011c067fc3.tar.gz
wolfbones-96cc9f7650e5af28957dcfed202cf8011c067fc3.tar.bz2
partially fixed on SPARC Solaris 8
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/gmake/compiler.mk6
-rw-r--r--makefiles/gmake/platform.mk8
2 files changed, 12 insertions, 2 deletions
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
#######################