diff options
Diffstat (limited to 'include/makeinclude/platform_sunos5_ghs.GNU')
-rw-r--r-- | include/makeinclude/platform_sunos5_ghs.GNU | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/makeinclude/platform_sunos5_ghs.GNU b/include/makeinclude/platform_sunos5_ghs.GNU index b0143f3162a..862aec77e51 100644 --- a/include/makeinclude/platform_sunos5_ghs.GNU +++ b/include/makeinclude/platform_sunos5_ghs.GNU @@ -4,10 +4,12 @@ debug = 1 optimize = 1 +threads = 1 exceptions = -#### Green Hills 1.8.9 isn't compatible with the SunOS threads libraries. -threads = +ifeq ($(threads),0) + CFLAGS += -DACE_MT_SAFE=0 +endif # threads CC = gcx CXX = $(CC) @@ -16,7 +18,7 @@ DCFLAGS += -g DLD = $(CXX) LD = $(CXX) LDFLAGS = --no_auto_instantiation -LIBS += -lsocket -ldl -lgen -lnsl -lposix4 +LIBS += -lsocket -ldl -lgen -lnsl -lposix4 -lthread OCFLAGS += -OL -OM PIC = -PIC RANLIB = @true @@ -25,12 +27,6 @@ ARFLAGS = -archive -o RANLIB = @true SOFLAGS = -shared -ifeq ($(threads),1) - LIBS += -lthread -else # ! threads - CFLAGS += -DACE_MT_SAFE=0 -endif # ! threads - ifdef exceptions CCFLAGS += --exceptions else # ! exceptions |