Changeset 72 for trunk/src/gcc


Ignore:
Timestamp:
Apr 30, 2003, 11:02:48 PM (22 years ago)
Author:
bird
Message:

Shared gcclib prettifications. Moved BOOT flags to topleve makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/config/i386/t-emx

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.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.
     3SHLIB_EXT      =
     4SHLIB_BASENAME = gcc$(gccdll_version)
     5SHLIB_MULTINAME= $(SHLIB_BASENAME)`echo @shlib_so_name@ | cut -b10`
     6SHLIB_DLLNAME  = $(SHLIB_MULTINAME).dll
     7SHLIB_LINK     = export DLLAR_CMDLINE="@shlib_objs@" && \
     8        kRx.exe dllar.cmd -o $$(@D)/$(SHLIB_DLLNAME) \
    59        -ordinal @multilib_flags@ -nocrtdll \
    610        -ex "__main __do_global_* _GLOBAL* _exit_dummy_ref __ctordtor* __eh* _DLL_InitTerm" \
    711        -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 $$@
    1016
    11 # Allow multi-threaded/single-threaded libraries
     17SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_DLLNAME) $$(DESTDIR)$$(slibdir)/
     18
     19# EMX Multi-threaded/Single-threaded libraries.
    1220MULTILIB_OPTIONS    = Zmt
    1321MULTILIB_DIRNAMES   = mt st
     
    2937LDFLAGS = -Zexe -Zcrtdll
    3038
    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 -Zcrtdll
    34 BOOT_CFLAGS  = -s -O2 -mcpu=pentium -mpreferred-stack-boundary=2 -malign-strings=0 -falign-loops=2 -falign-jumps=2 -falign-functions=2
    35 
    3639# Add the 's' flag to $AR so that we don't need ranlib
    3740AR_FLAGS = rcs
    3841
    39 # We don`t want debug information in libgcc
     42# We don't want debug information in libgcc
    4043LIBGCC2_DEBUG_CFLAGS = -s
    4144# We also want epilogues for each function in libgcc
     
    5356  $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c $(srcdir)/unwind-sjlj.c
    5457#LIB2ADDEHDEP
     58
    5559
    5660# EMX include directory
     
    8589
    8690# 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.
    8992$(ALL): s-libgcc
    9093s-libgcc: $(LIBGCC)
     
    9295        mv -f st/libgcc.a st/gcc.a
    9396        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         fi
    9797        mv -f mt/libgcc.a mt/gcc.a
    9898        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         fi
    102         ar x st/gcc.a __main.o emx-ctordtor.o
    103         ar x st/gcc_eh.a emx-eh.o emx-dllinit.o
    104         ar rs st/gcc$(gccdll_version).a __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o
    105         ar rs mt/gcc$(gccdll_version).a __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o
    106         rm -f __main.o emx-ctordtor.o emx-eh.o emx-dllinit.o
    10799        $(STAMP) s-libgcc
    108100        echo "t-emx hacks: $@ done"
     
    110102emx.o: $(srcdir)/config/i386/emx.c $(RTL_H) $(TREE_H) $(CONFIG_H)
    111103        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/emx.c
     104
Note: See TracChangeset for help on using the changeset viewer.