From 25871146ba14e0dc8cbae2bc1b37f4e56fd84dca Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Thu, 6 Jul 2006 19:03:29 +0000 Subject: [PATCH] Updated FTK makefile to detect the Sun Studio compiler. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@637 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- ftk/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ftk/Makefile b/ftk/Makefile index 71d8597..2b6f8ac 100644 --- a/ftk/Makefile +++ b/ftk/Makefile @@ -837,6 +837,10 @@ ifdef unix_target compiler = CC exe_linker = CC shared_linker = ld + compiler_version := $(shell $(compiler) -V) + ifneq (,$(findstring Sun C++,$(compiler_version))) + sun_studio_compiler = yes + endif endif endif @@ -905,7 +909,10 @@ ifdef unix_target ifeq ($(target_os_family),solaris) ifeq ($(usenativecc),yes) - ccflags += -KPIC -errwarn=%all -errtags -erroff=hidef,inllargeuse + ccflags += -KPIC + ifeq ($(sun_studio_compiler),yes) + ccflags += -errwarn=%all -errtags -erroff=hidef,inllargeuse + endif ifeq ($(target_word_size),64) ccflags += -xarch=generic64 else