diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-25 20:20:33 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-25 20:20:33 +0000 |
commit | 0ac005c13aa2d5d80b95b0033446dbc667991849 (patch) | |
tree | 2c02a733281d7d31e73c2be381259004cd04ea37 | |
parent | b27ff5e4563c52c5a57a3597ea910216bc6ce332 (diff) | |
download | ATCD-0ac005c13aa2d5d80b95b0033446dbc667991849.tar.gz |
added -Xleaveg7 to CFLAGS with threads=1. It's necessary
to avoid execution problems in multithreaded programs.
-rw-r--r-- | include/makeinclude/platform_sunos5_ghs.GNU | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/makeinclude/platform_sunos5_ghs.GNU b/include/makeinclude/platform_sunos5_ghs.GNU index b0143f3162a..8d285c0d54c 100644 --- a/include/makeinclude/platform_sunos5_ghs.GNU +++ b/include/makeinclude/platform_sunos5_ghs.GNU @@ -3,11 +3,9 @@ # SunOS 5.x (Solaris 2.x) with GreenHills compiler. debug = 1 -optimize = 1 exceptions = - -#### Green Hills 1.8.9 isn't compatible with the SunOS threads libraries. -threads = +optimize = 1 +threads = 1 CC = gcx CXX = $(CC) @@ -26,6 +24,8 @@ RANLIB = @true SOFLAGS = -shared ifeq ($(threads),1) + #### Don't use g7 register with threading. + CFLAGS += -Xleaveg7 LIBS += -lthread else # ! threads CFLAGS += -DACE_MT_SAFE=0 |