diff options
author | wtc <devnull@localhost> | 1998-05-27 23:15:32 +0000 |
---|---|---|
committer | wtc <devnull@localhost> | 1998-05-27 23:15:32 +0000 |
commit | 6753300bdadb9b7d64e34ffbacaec777655dac08 (patch) | |
tree | 7864222a7c8e0f0bcd7f79e110e9437153bfb3cd | |
parent | ebf52d8df37885b972d5589d268c31271f352668 (diff) | |
download | nspr-hg-6753300bdadb9b7d64e34ffbacaec777655dac08.tar.gz |
Use the stabs debug format on Solaris x86, because the default dwarf
format does not work. This patch is provided by Soren Juul Moller
<sjm@nwc.dk>.
-rw-r--r-- | config/SunOS5.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/SunOS5.mk b/config/SunOS5.mk index d4775ce5..1c14851c 100644 --- a/config/SunOS5.mk +++ b/config/SunOS5.mk @@ -99,6 +99,15 @@ ifeq ($(OS_TEST),i86pc) CPU_ARCH = x86 CPU_ARCH_TAG = _i86pc OS_DEFINES += -Di386 +# The default debug format, DWARF (-g), is not supported by gcc +# on i386-ANY-sysv4/solaris, but the stabs format is. It is +# assumed that the Solaris assembler /usr/ccs/bin/as is used. +# If your gcc uses GNU as, you do not need the -Wa,-s option. +ifndef BUILD_OPT +ifdef NS_USE_GCC +OPTIMIZER = -Wa,-s -gstabs +endif +endif else CPU_ARCH = sparc endif |