diff options
Diffstat (limited to 'include/makeinclude/platform_chorus.GNU')
-rw-r--r-- | include/makeinclude/platform_chorus.GNU | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/include/makeinclude/platform_chorus.GNU b/include/makeinclude/platform_chorus.GNU index 587da8bb457..440b590366b 100644 --- a/include/makeinclude/platform_chorus.GNU +++ b/include/makeinclude/platform_chorus.GNU @@ -14,6 +14,7 @@ static_libs = 1 # The following file includes definitions such as $(CC), $(XDIR), etc. # include $(MERGEDIR)/dtool/htgt-cf.rf +CLASSIXDIR=$(MERGEDIR) # # Tool PATH # @@ -27,22 +28,43 @@ CXX = $(CC) CFLAGS += -w CCFLAGS += $(CFLAGS) -fno-implicit-templates \ -fno-strict-prototypes \ + -Usun \ + -fno-builtin \ + -fconserve-space \ + -fcheck-new \ -nostdinc \ + -pipe \ + -fno-rtti \ + -fno-exceptions \ -D_POSIX_THREADS \ -D_POSIX_THREAD_SAFE_FUNCTIONS -DCFLAGS += -gstabs+ +#DCFLAGS += -gstabs+ INCLDIRS += -I$(INC_DIR)/posix \ -I$(INC_DIR)/stdc \ -I$(INC_DIR)/chorus/ \ -I$(INC_DIR)/chorus/iom \ -I$(INC_DIR)/CC DLD = -LD = $(CXX) -LDFLAGS += -r -Ur -nostdlib \ - -L$(LIB_DIR)/CC \ - -L$(LIB_DIR)/classix +LD = $(XDIR)/bin/ld +LDFLAGS += -r $(CLASSIXDIR)/lib/CC/libC.a $(CLASSIXDIR)/lib/classix/libcx.u.a +MATHLIB = -L$(CLASSIXDIR)/lib/libm -lm -OCFLAGS += -O2 +LINK.cc.override = $(LD) -u _main -u _premain +LINK.cc=override + +CHORUSLINK=true + +# $(CLASSIXDIR)/dtool/mkctors helloCxx_u.xp.o > helloCxx_u.ct.s +# $(CXX) -c helloCxx_u.ct.s +# $(RM) helloCxx_u.ct.s +# $(LD) $(LDOPTIONS) -e _start -o helloCxx_u \ +# $(CLASSIXDIR)/lib/crt/crth.u.o $(CLASSIXDIR)/lib/crt/crt0.o $(CLASSIXDIR)/lib/crt/crti.o helloCxx_u.xp.o helloCxx_u.ct.o $(CLASSIXDIR)/lib/crt/crtn.o \ +# -dn -T $(CLASSIXDIR)/src/act/slots/act_u.ld +# $(RM) helloCxx_u.xp.o +# $(RM) helloCxx_u.ct.o + + +OCFLAGS += -O PIC = -fPIC AR = $(TOOLDIR)ar |