summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-05 04:36:37 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-05 04:36:37 +0000
commitcb139f469626e44ccdb218f4ac53d0afae9e50be (patch)
tree8b7df0f1e9af671df4154db9d3db1d180d0a1935 /include
parentd2d51ae75ad798296ef28761ab8cf4f1635f139f (diff)
downloadATCD-cb139f469626e44ccdb218f4ac53d0afae9e50be.tar.gz
generate calls to static ctors/dtors
Diffstat (limited to 'include')
-rw-r--r--include/makeinclude/platform_chorus_ghs.GNU8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/makeinclude/platform_chorus_ghs.GNU b/include/makeinclude/platform_chorus_ghs.GNU
index c821fe6ef4d..f15c4a7b1a2 100644
--- a/include/makeinclude/platform_chorus_ghs.GNU
+++ b/include/makeinclude/platform_chorus_ghs.GNU
@@ -54,7 +54,7 @@ DLD = $(CXX)
LD = $(CXX)
LDFLAGS = --no_auto_instantiation \
-u __main -u __premain -u _abort -r \
- $(MVME_DIR)/lib/CC/ioassign.o \
+ $(MVME_DIR)/lib/CC/ioassign.o $(MVME_DIR)/lib/CC/iostream.o \
$(COOL_DIR)/lib/libOrb.a \
$(MVME_DIR)/lib/CC/libC.a \
$(GHS_DIR)/ch68/libedg.a \
@@ -66,10 +66,14 @@ ARFLAGS = rv
RANLIB = /bin/true
-POSTLINK = ; $(CC) -groot= -alttools=$(GHS_DIR) -68040 -O -nostartfiles \
+POSTLINK = ; $(MVME_DIR)/dtool/mkctors $@ > ctorsdtors.s; \
+ $(CC) $(CFLAGS) -c ctorsdtors.s -o .obj/ctorsdtors.o; \
+ rm -f ctorsdtors.s; \
+ $(CC) -groot= -alttools=$(GHS_DIR) -68040 -O -nostartfiles \
-nostdlib -e __start -o $@.final \
$(MVME_DIR)/lib/crt/crth.s.o $(MVME_DIR)/lib/crt/crt0.o \
$(MVME_DIR)/lib/crt/crti.o $@ \
+ .obj/ctorsdtors.o \
$(MVME_DIR)/lib/crt/crtn.o \
-locatedprogram -r; \
mv -f $@.final $@