summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_chorus_ghs.GNU
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-25 16:54:38 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-25 16:54:38 +0000
commit0805ca97fd1319c4ede9d8186cd7ea20facea965 (patch)
treeeb0122ea18ca359f8f0581af661bbdad32366b16 /include/makeinclude/platform_chorus_ghs.GNU
parent914e7910e7f6e3576c4a96e9753b24be85e63659 (diff)
downloadATCD-0805ca97fd1319c4ede9d8186cd7ea20facea965.tar.gz
if debug is enabled, link with crth_d.s.o instead of crth.s.o
Diffstat (limited to 'include/makeinclude/platform_chorus_ghs.GNU')
-rw-r--r--include/makeinclude/platform_chorus_ghs.GNU12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/makeinclude/platform_chorus_ghs.GNU b/include/makeinclude/platform_chorus_ghs.GNU
index 435baff6df9..9ab6bed5ca5 100644
--- a/include/makeinclude/platform_chorus_ghs.GNU
+++ b/include/makeinclude/platform_chorus_ghs.GNU
@@ -53,14 +53,20 @@ LDFLAGS = --no_auto_instantiation \
$(MVME_DIR)/lib/CC/libC.a \
$(GHS_DIR)/ch68/libedg.a \
$(MVME_DIR)/lib/classix/libcx.s.a
-OCFLAGS += -O -OM -OL
+OCFLAGS += -OL -OM
AR = $(GHS_DIR)/gnuch68/bin/ar
ARFLAGS = rv
RANLIB = @true
+ifeq ($(debug),)
+ CRTH = $(MVME_DIR)/lib/crt/crth.s.o
+else
+ CRTH = $(MVME_DIR)/lib/crt/crth_d.s.o
+endif # debug
+
POSTLINK = ; $(CC) -groot=$(MVME_DIR) -alttools=$(GHS_DIR) -68040 \
- -O -nostartfiles -nostdlib -e __start -o $@.final \
- $(MVME_DIR)/lib/crt/crth.s.o $(MVME_DIR)/lib/crt/crt0.o \
+ -nostartfiles -nostdlib -e __start -o $@.final \
+ $(CRTH) $(MVME_DIR)/lib/crt/crt0.o \
$(MVME_DIR)/lib/crt/crti.o $@ \
$(MVME_DIR)/lib/crt/crtn.o \
-locatedprogram -r; \