summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_linux_kcc.GNU
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-09 16:33:42 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-09 16:33:42 +0000
commit6aa237f8647476026481f10e3023f64686471a61 (patch)
tree246f122dc364ec211e41422c373044bf477e9a4f /include/makeinclude/platform_linux_kcc.GNU
parent2f57ffbe96fce34bc1cb039c720225f4f058da0c (diff)
downloadATCD-6aa237f8647476026481f10e3023f64686471a61.tar.gz
ChangeLogTag:Fri Jun 9 09:28:18 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'include/makeinclude/platform_linux_kcc.GNU')
-rw-r--r--include/makeinclude/platform_linux_kcc.GNU25
1 files changed, 18 insertions, 7 deletions
diff --git a/include/makeinclude/platform_linux_kcc.GNU b/include/makeinclude/platform_linux_kcc.GNU
index b2abbf87a0f..de0b971d512 100644
--- a/include/makeinclude/platform_linux_kcc.GNU
+++ b/include/makeinclude/platform_linux_kcc.GNU
@@ -16,6 +16,9 @@ endif
ifeq (,$(optimize))
optimize=1
endif
+ifeq (,$(threads))
+ threads = 1
+endif
CC = KCC
CXX = $(CC)
@@ -24,18 +27,28 @@ CFLAGS += -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT \
CCFLAGS += $(CFLAGS) -DNULL=0
DCFLAGS += +K0 -g
+OCFLAGS += +K3 -O --one_instantiation_per_object
DLD = $(CC)
LD = $(CC)
-LIBS += -Bdynamic -ldl -lpthread -lm
+# Using just -ldl results in a very annoying warning (nm: no symbols),
+# because the prelinker searches for missing templates in the libdl
+# library. Passing the option directly to the linker fixes the
+# warning.
+LIBS += -Wl,-ldl
ifeq (,$(exceptions))
exceptions=0
endif # exceptions
ifeq ($(exceptions),0)
- EXCEPTION = --no_exceptions
+ CCFLAGS += --no_exceptions
endif # ! exceptions
+ifeq ($(threads),1)
+ CFLAGS += --thread_safe
+ LDFLAGS += --thread_safe
+endif # threads
+
# KCC allows suppresion of warnings and errors.
# Warning #280 declaration of a member with the same name as its class
CCFLAGS += --diag_suppress 280
@@ -59,13 +72,11 @@ ifneq ($(static_libs),0)
LIBS += -lc -Bstatic
endif
-OCFLAGS += +K3 -O --one_instantiation_per_object $(EXCEPTION)
PIC = -fPIC
AR = $(CC)
-ARFLAGS = $(EXCEPTION) -Bstatic -o
+ARFLAGS = $(CCFLAGS) $(CPPFLAGS) -Bstatic -o
RANLIB = @true
-SOFLAGS = $(EXCEPTION)
-SOBUILD = $(COMPILE.cc) $(PIC) $(EXCEPTION) -o $(VSHDIR)$*.o $<
+SOFLAGS = $(PIC) $(CCFLAGS) $(CPPFLAGS)
+SOBUILD = $(COMPILE.cc) $(SOFLAGS) -o $(VSHDIR)$*.o $<
PRELIB = @true
PRELIB_USES_OBJ_ONLY = 1
-