summaryrefslogtreecommitdiffstats
path: root/mak
diff options
context:
space:
mode:
authordavid.dillard <david.dillard>2005-05-18 01:38:59 +0000
committerdavid.dillard <david.dillard>2005-05-18 01:38:59 +0000
commit581e3bfbfad0ab823479adbd3880a3aa5c5439e6 (patch)
tree561ec08836e9f4e234695b8421334c43fc8efb68 /mak
parente4f18013d4c8a1b5a7237430baf9df9a6dfd045b (diff)
downloadtog-pegasus-581e3bfbfad0ab823479adbd3880a3aa5c5439e6.zip
tog-pegasus-581e3bfbfad0ab823479adbd3880a3aa5c5439e6.tar.gz
tog-pegasus-581e3bfbfad0ab823479adbd3880a3aa5c5439e6.tar.xz
BUG#: 3325
TITLE: 'Fixed' problem with compiling C files. DESCRIPTION: This is a hack, but it at least allows C files to compile properly. It puts a C++ specific option as a part of the C++ compiler line so that it doesn't get used by the C compiler - as it is not a valid option to the C compiler.
Diffstat (limited to 'mak')
-rw-r--r--mak/platform_SOLARIS_SPARC_CC.mak12
1 files changed, 8 insertions, 4 deletions
diff --git a/mak/platform_SOLARIS_SPARC_CC.mak b/mak/platform_SOLARIS_SPARC_CC.mak
index b697d29..46861b5 100644
--- a/mak/platform_SOLARIS_SPARC_CC.mak
+++ b/mak/platform_SOLARIS_SPARC_CC.mak
@@ -34,9 +34,13 @@ ARCHITECTURE = sparc
COMPILER = CC
-CC = CC
+CC = cc
-CXX = CC
+#
+# This is a hack because the Pegasus build system doesn't have a way to specify
+# flags just for the C compiler or just for the C++ compiler.
+#
+CXX = CC -pto
SH = sh
@@ -79,9 +83,9 @@ DEFINES += -DSUNOS_5_6
endif
ifdef PEGASUS_DEBUG
-FLAGS = -g -pto -KPIC -mt -xs -xildoff
+FLAGS = -g -KPIC -mt -xs -xildoff
else
-FLAGS = -O -pto -KPIC -mt -xildoff -s -xipo=1
+FLAGS = -O -KPIC -mt -xildoff -s -xipo=1
endif
SYS_LIBS = -lpthread -ldl -lsocket -lnsl -lxnet