diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-05 14:25:25 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-05 14:25:25 +0000 |
commit | 9738bff6a60565f287b6376a5fe8e9ee21a43478 (patch) | |
tree | a2b2cd775f802968ae92a055f6ef9ded4634cf33 /include | |
parent | 952a8a13b811c5513b029f11ff32f6ab536b3e9d (diff) | |
download | ATCD-9738bff6a60565f287b6376a5fe8e9ee21a43478.tar.gz |
use -gstabs+ instead of -g on Solaris86
Diffstat (limited to 'include')
-rw-r--r-- | include/makeinclude/platform_sunos5_g++.GNU | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/makeinclude/platform_sunos5_g++.GNU b/include/makeinclude/platform_sunos5_g++.GNU index f3cc1879ad9..a37c427338e 100644 --- a/include/makeinclude/platform_sunos5_g++.GNU +++ b/include/makeinclude/platform_sunos5_g++.GNU @@ -7,17 +7,26 @@ # way to do that is to set "optimize = 0", either below or on # your make command line. +# NOTE: On Solaris86, you'll need to use GNU as instead of /usr/ccs/bin/as, +# if you want -gstabs+ and -pipe support. + debug = 1 optimize = 1 +ifeq ($(shell /bin/uname -i),i86pc) + #### gcc on Solaris86 doesn't use -g + DCFLAGS += -gstabs+ +else # ! i86pc + DCFLAGS += -g +endif # ! i86pc + CC = gcc CXX = g++ CFLAGS += -Wall -Wpointer-arith -pipe #### -Winline CCFLAGS += $(CFLAGS) -fno-implicit-templates -DCFLAGS += -g DLD = $(CXX) LD = $(CXX) -LDFLAGS += # -z muldefs +LDFLAGS += LIBS += -lsocket -ldl -lgen -lnsl -lposix4 -lthread -lw OCFLAGS += -O2 PIC = -fpic @@ -25,6 +34,5 @@ AR = ar ARFLAGS = ruv RANLIB = @true SOFLAGS = -G $(CPPFLAGS) -# SOBUILD - compile into .so directly SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< PRELIB = @true |