Changeset 72 for trunk/src/gcc
- Timestamp:
- Apr 30, 2003, 11:02:48 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/gcc/config/i386/t-emx
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r71 r72 1 # Build a shared libgcc library. 2 SHLIB_EXT = 3 SHLIB_LINK = touch $$@ && export DLLAR_CMDLINE="@shlib_objs@" && \ 4 kRx.exe dllar.cmd -o `echo $$@ | sed -e "s,\(.\)\(.*\)libgcc_s_.*,\1\2gcc$(gccdll_version)\1.dll,"` \ 1 # EMX target have share libgcc, but the names are release specific and constrained by 8.3 limits. 2 # The link command depends heavily on the directory structure. 3 SHLIB_EXT = 4 SHLIB_BASENAME = gcc$(gccdll_version) 5 SHLIB_MULTINAME= $(SHLIB_BASENAME)`echo @shlib_so_name@ | cut -b10` 6 SHLIB_DLLNAME = $(SHLIB_MULTINAME).dll 7 SHLIB_LINK = export DLLAR_CMDLINE="@shlib_objs@" && \ 8 kRx.exe dllar.cmd -o $$(@D)/$(SHLIB_DLLNAME) \ 5 9 -ordinal @multilib_flags@ -nocrtdll \ 6 10 -ex "__main __do_global_* _GLOBAL* _exit_dummy_ref __ctordtor* __eh* _DLL_InitTerm" \ 7 11 -d "GNU C runtime shared library version $(gcc_version)" \ 8 -libf "INITINSTANCE TERMGLOBAL" -lc_static -lc_import 9 SHLIB_INSTALL = 12 -libf "INITINSTANCE TERMGLOBAL" -lc_static -lc_import \ 13 && mv -f $$(@D)/$(SHLIB_MULTINAME).a $$(@D)/$(SHLIB_BASENAME).a \ 14 && ar rs $$(@D)/$(SHLIB_BASENAME).a libgcc/$$(@D)/__main.o libgcc/$$(@D)/emx-ctordtor.o libgcc/$$(@D)/emx-eh.o libgcc/$$(@D)/emx-dllinit.o \ 15 && touch $$@ 10 16 11 # Allow multi-threaded/single-threaded libraries 17 SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_DLLNAME) $$(DESTDIR)$$(slibdir)/ 18 19 # EMX Multi-threaded/Single-threaded libraries. 12 20 MULTILIB_OPTIONS = Zmt 13 21 MULTILIB_DIRNAMES = mt st … … 29 37 LDFLAGS = -Zexe -Zcrtdll 30 38 31 # GCC Boot Flags (stage2+)32 # Note! -Zcrtdll requires the st&mt subdirs of each stage[1-3] to be in the libpath - env.cmd takes care of that.33 BOOT_LDFLAGS = -s -Zexe -Zcrtdll34 BOOT_CFLAGS = -s -O2 -mcpu=pentium -mpreferred-stack-boundary=2 -malign-strings=0 -falign-loops=2 -falign-jumps=2 -falign-functions=235 36 39 # Add the 's' flag to $AR so that we don't need ranlib 37 40 AR_FLAGS = rcs 38 41 39 # We don `t want debug information in libgcc42 # We don't want debug information in libgcc 40 43 LIBGCC2_DEBUG_CFLAGS = -s 41 44 # We also want epilogues for each function in libgcc … … 53 56 $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c $(srcdir)/unwind-sjlj.c 54 57 #LIB2ADDEHDEP 58 55 59 56 60 # EMX include directory … … 85 89 86 90 # Some final polishing of libgcc ... 87 # r=bird: Isn't this done a little bit too late to link all the gcc compilers 88 # and such agains the right [sm]t/gcc$(gccdll_version).a? 91 # r=bird: Moved parts of this up to the SHLIB_LINK command. 89 92 $(ALL): s-libgcc 90 93 s-libgcc: $(LIBGCC) … … 92 95 mv -f st/libgcc.a st/gcc.a 93 96 mv -f st/libgcc_eh.a st/gcc_eh.a 94 if [ -f st/gcc$(gccdll_version)s.a ]; then \95 mv -f st/gcc$(gccdll_version)s.a st/gcc$(gccdll_version).a; \96 fi97 97 mv -f mt/libgcc.a mt/gcc.a 98 98 mv -f mt/libgcc_eh.a mt/gcc_eh.a 99 if [ -f mt/gcc$(gccdll_version)m.a ]; then \100 mv -f mt/gcc$(gccdll_version)m.a mt/gcc$(gccdll_version).a; \101 fi102 ar x st/gcc.a __main.o emx-ctordtor.o103 ar x st/gcc_eh.a emx-eh.o emx-dllinit.o104 ar rs st/gcc$(gccdll_version).a __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o105 ar rs mt/gcc$(gccdll_version).a __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o106 rm -f __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o107 99 $(STAMP) s-libgcc 108 100 echo "t-emx hacks: $@ done" … … 110 102 emx.o: $(srcdir)/config/i386/emx.c $(RTL_H) $(TREE_H) $(CONFIG_H) 111 103 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/emx.c 104 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.