Changeset 224 for trunk/src/gcc
- Timestamp:
- May 22, 2003, 10:07:21 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.11
to1.12
r223 r224 1 # bird: dropping multilibs. Old hacks - START 2 ## EMX target have share libgcc, but the names are release specific and constrained by 8.3 limits. 3 ## The link command depends heavily on the directory structure. 4 #SHLIB_EXT = 5 #SHLIB_BASENAME = gcc$(gccdll_version) 6 #SHLIB_MULTINAME= $(SHLIB_BASENAME)`echo @shlib_so_name@ | cut -b10` 7 #SHLIB_DLLNAME = $(SHLIB_MULTINAME).dll 8 #SHLIB_LINK = export DLLAR_CMDLINE="@shlib_objs@" && \ 9 # kRx.exe dllar.cmd -o $$(@D)/$(SHLIB_DLLNAME) \ 10 # -ordinal @multilib_flags@ -nocrtdll \ 11 # -ex "__main __do_global_* _GLOBAL* _exit_dummy_ref __ctordtor* __eh* _DLL_InitTerm" \ 12 # -d "GNU C runtime shared library version $(gcc_version)" \ 13 # -libf "INITINSTANCE TERMGLOBAL" -lc_static -lc_import \ 14 # && mv -f $$(@D)/$(SHLIB_MULTINAME).a $$(@D)/$(SHLIB_BASENAME).a \ 15 # && 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 \ 16 # && touch $$@ 17 #SHLIB_SUBDIR = `echo @shlib_base_name@ | sed -e "s/^libgcc_s_//" -e "s,_,/,g"` 18 #SHLIB_INSTALL = $$(INSTALL_DATA) $(SHLIB_SUBDIR)/$(SHLIB_DLLNAME) $$(DESTDIR)$$(slibdir)/ \ 19 # && $$(INSTALL_DATA) $(SHLIB_SUBDIR)/$(SHLIB_BASENAME).a $$(DESTDIR)$$(libsubdir)/$(SHLIB_SUBDIR)/ 20 # 21 ## EMX Multi-threaded/Single-threaded libraries. 22 #MULTILIB_OPTIONS = Zmt 23 #MULTILIB_DIRNAMES = mt st 24 #MULTILIB_MATCHES = Zmt=Zmts Zmt=Zmtd 25 #MULTILIB_EXCEPTIONS = 26 #MULTILIB_EXTRA_OPTS = 27 # bird: dropping multilibs. Old hacks - END 28 1 29 # 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 30 SHLIB_BASENAME = gcc$(gccdll_version) 5 SHLIB_MULTINAME= $(SHLIB_BASENAME) `echo @shlib_so_name@ | cut -b10`31 SHLIB_MULTINAME= $(SHLIB_BASENAME) 6 32 SHLIB_DLLNAME = $(SHLIB_MULTINAME).dll 7 33 SHLIB_LINK = export DLLAR_CMDLINE="@shlib_objs@" && \ … … 11 37 -d "GNU C runtime shared library version $(gcc_version)" \ 12 38 -libf "INITINSTANCE TERMGLOBAL" -lc_static -lc_import \ 13 && mv -f $$(@D)/$(SHLIB_MULTINAME).a $$(@D)/$(SHLIB_BASENAME).a \14 39 && 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 40 && touch $$@ 16 SHLIB_SUBDIR = `echo @shlib_base_name@ | sed -e "s/^libgcc_s_//" -e "s,_,/,g"`41 SHLIB_SUBDIR = . 17 42 SHLIB_INSTALL = $$(INSTALL_DATA) $(SHLIB_SUBDIR)/$(SHLIB_DLLNAME) $$(DESTDIR)$$(slibdir)/ \ 18 43 && $$(INSTALL_DATA) $(SHLIB_SUBDIR)/$(SHLIB_BASENAME).a $$(DESTDIR)$$(libsubdir)/$(SHLIB_SUBDIR)/ 19 20 # EMX Multi-threaded/Single-threaded libraries.21 MULTILIB_OPTIONS = Zmt22 MULTILIB_DIRNAMES = mt st23 MULTILIB_MATCHES = Zmt=Zmts Zmt=Zmtd24 MULTILIB_EXCEPTIONS =25 MULTILIB_EXTRA_OPTS =26 44 27 45 # Dont use collect2 … … 83 101 gccdll_version = $(subst .,,$(gcc_version)) 84 102 103 # bird (#424): dropping multilibs. Old hacks - START 104 #stage1 stage2 stage3 stage4: 105 # echo "t-emx hacks: $@ starting" 106 # -mv -f *.exe *.ready st mt s-libgcc $@ 107 # -rm -f $@/$(LIBGCC) 108 # echo "t-emx hacks: $@ done" 109 110 ## Some final polishing of libgcc ... 111 ## r=bird: Moved parts of this up to the SHLIB_LINK command. 112 ## Use cp as mv causes recreation of libversions during make install. 113 ## Is there ANY chance we could juse leave them as libgcc*.a? That would've 114 ## been much more convenient... 8.3 isn't an argument. 115 #$(ALL): s-libgcc 116 #s-libgcc: $(LIBGCC) 117 # echo "t-emx hacks: $@ starting" 118 # cp -f st/libgcc.a st/gcc.a 119 # cp -f st/libgcc_eh.a st/gcc_eh.a 120 # cp -f mt/libgcc.a mt/gcc.a 121 # cp -f mt/libgcc_eh.a mt/gcc_eh.a 122 # $(STAMP) s-libgcc 123 # echo "t-emx hacks: $@ done" 124 # bird (#424): dropping multilibs. Old hacks - END 125 126 # bird (#424): New gcc*dll hacks 85 127 stage1 stage2 stage3 stage4: 86 128 echo "t-emx hacks: $@ starting" 87 -mv -f *.exe *.ready st mt s-libgcc $@ 88 -rm -f $@/$(LIBGCC) 89 echo "t-emx hacks: $@ done" 90 91 # Some final polishing of libgcc ... 92 # r=bird: Moved parts of this up to the SHLIB_LINK command. 93 # Use cp as mv causes recreation of libversions during make install. 94 # Is there ANY chance we could juse leave them as libgcc*.a? That would've 95 # been much more convenient... 8.3 isn't an argument. 96 $(ALL): s-libgcc 97 s-libgcc: $(LIBGCC) 98 echo "t-emx hacks: $@ starting" 99 cp -f st/libgcc.a st/gcc.a 100 cp -f st/libgcc_eh.a st/gcc_eh.a 101 cp -f mt/libgcc.a mt/gcc.a 102 cp -f mt/libgcc_eh.a mt/gcc_eh.a 103 $(STAMP) s-libgcc 129 -mv -f gcc3*.dll gcc3*.a gcc3*.def $@ 104 130 echo "t-emx hacks: $@ done" 105 131 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.