Use the stabs debug format on Solaris x86, because the default dwarf
authorwtc
Wed, 27 May 1998 23:15:32 +0000
changeset 130 f20748cdf4e41810939e62ea13490cd52ec4f91a
parent 129 bcd7b2691deadf53e01aa1c03c53d02e12037663
child 131 668c89a6a88a3b4e895e78464069546cfa0eabe6
push idunknown
push userunknown
push dateunknown
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>.
config/SunOS5.mk
--- a/config/SunOS5.mk
+++ b/config/SunOS5.mk
@@ -94,16 +94,25 @@ endif
 RANLIB			= echo
 
 OS_DEFINES		= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS
 
 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
 
 ifeq (5.5,$(findstring 5.5,$(OS_RELEASE)))
 OS_DEFINES		+= -DSOLARIS2_5
 endif