- Timestamp:
- Sep 10, 2006, 1:58:27 AM (19 years ago)
- Location:
- branches/libc-0.6/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/ChangeLog.LIBC
r2813 r2814 5 5 2006-09-09: knut st. osmundsen <bird-gccos2-spam@anduin.net> 6 6 - libc: 7 o #124: Link libstdc++ into the libc dll. 7 8 o #125: Implemented nan(), nanl(), and nanf(). 8 9 - emxomfld: -
branches/libc-0.6/src/emx/src/lib/libc.smak
r2802 r2814 187 187 $(LIBC.LIBS) \ 188 188 $(filter %.lib,$(LIBC.DEPS)) \ 189 -L$.omf -l gcc -lgcc_eh $(LIBC.STUBARG)189 -L$.omf -lstdc++ -lgcc -lgcc_eh $(LIBC.STUBARG) 190 190 ifeq ($(MODE),opt) 191 191 cp $@ $(@:.dll=.dbg) … … 194 194 195 195 # LIBC .def file 196 $(LIBC.DEF): $(LIBC.LIBS) src/lib/libc.def version.smak196 $(LIBC.DEF): $(LIBC.LIBS) src/lib/libc.def src/lib/libstdc++.def version.smak 197 197 $(call RM,$@) 198 198 @$(call FECHO,$@,LIBRARY libc$(VH)$(VM)$(VL) INITINSTANCE TERMINSTANCE) … … 205 205 mv -f $@.tmp $@ 206 206 krx.exe src/lib/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def 207 mv -f $@ $@.tmp 208 cat "src/lib/libstdc++.def" >> $@.tmp 209 mv -f $@.tmp $@ 210 207 211 208 212 # LIBC import libraries with dllinit, libsocket and libsyslog. … … 238 242 $(LIBC.LOG.LIBS) \ 239 243 $(filter %.lib,$(LIBC.LOG.DEPS)) \ 240 -L$.omf -l gcc -lgcc_eh $(LIBC.STUBARG)244 -L$.omf -lstdc++ -lgcc -lgcc_eh $(LIBC.STUBARG) 241 245 echo $@ 242 246 … … 248 252 $(LIBC.PRF.LIBS) \ 249 253 $(filter %.lib,$(LIBC.PRF.DEPS)) \ 250 -L$.omf-prof -L$.omf -l gcc -lgcc_eh $(LIBC.STUBARG)254 -L$.omf-prof -L$.omf -lstdc++ -lgcc -lgcc_eh $(LIBC.STUBARG) 251 255 echo $@ 252 256 … … 268 272 $(LIBC.ELH.LIBS) \ 269 273 $(filter %.lib,$(LIBC.ELH.DEPS)) \ 270 -L$.omf -l gcc -lgcc_eh $(LIBC.STUBARG)274 -L$.omf -lstdc++ -lgcc -lgcc_eh $(LIBC.STUBARG) 271 275 echo $@ 272 276 -
branches/libc-0.6/src/gcc/gcc/config/i386/emx-libgcc_so_d.def
r2003 r2814 1 1 ; Auto-generated file, DO NOT EDIT!!! (see libgcc_d.awk) */ 2 LIBRARY libc06 b5INITINSTANCE TERMINSTANCE2 LIBRARY libc062 INITINSTANCE TERMINSTANCE 3 3 EXPORTS 4 4 EXPORTS -
branches/libc-0.6/src/gcc/gcc/config/i386/emx.h
r2249 r2814 406 406 *-----------------------------------------------------------------------------*/ 407 407 408 /* Predefine symbols. */ 408 /* Use the stdc++ code linked into the libc dll when possible. */ 409 #define LIBSTDCXX "-lc_dll" 410 #define LIBSTDCXX_STATIC "-lstdc++" 411 #define LIBSTDCXX_PROFILE LIBSTDCXX 412 #define LIBSTDCXX_PROFILE_STATIC LIBSTDCXX_STATIC 413 414 /* Predefine symbols. 415 We could possibly move these to an include and use -include here... 416 __KLIBC_VERSION__ = (__KLIBC__ << 24) | (__KLIBC_MINOR__ << 16) | __KLIBC_PATCHLEVEL__ 417 __INNOTEK_LIBC__ = __KLIBC__ (legacy) */ 409 418 #undef CPP_PREDEFINES 410 #define CPP_PREDEFINES "-D__INNOTEK_LIBC__=0x006" 419 #define CPP_PREDEFINES "-D__KLIBC__=0 -D__KLIBC_MINOR__=6 -D__KLIBC_PATCHLEVEL__=2 " \ 420 "-D__KLIBC_VERSION__=0x00060002 " \ 421 "-D__INNOTEK_LIBC__=0x006 " 411 422 412 423 /* Provide extra args to the C preprocessor and extra switch-translations. */ -
branches/libc-0.6/src/gcc/gcc/cp/g++spec.c
r1392 r2814 43 43 #define LIBSTDCXX_PROFILE "-lstdc++" 44 44 #endif 45 #ifdef LIBSTDCXX_STATIC /* bird */ 46 #define LIBSTDCXX_STATIC "-lstdc++" /* bird */ 47 #endif /* bird */ 48 #ifdef LIBSTDCXX_PROFILE_STATIC /* bird */ 49 #define LIBSTDCXX_PROFILE_STATIC "-lstdc++" /* bird */ 50 #endif /* bird */ 45 51 46 52 void … … 95 101 int shared_libgcc = 1; 96 102 103 /* True if we saw the '-static' option on the commandline. */ /* bird */ 104 int saw_static = 0; /* bird */ 105 /* bird */ 97 106 /* The total number of arguments with the new stuff. */ 98 107 int argc; … … 155 164 { 156 165 /* If they only gave us `-v', don't try to link 157 in libg++. */ 166 in libg++. */ 158 167 library = 0; 159 168 } … … 176 185 added -= 2; 177 186 } 178 else if (strcmp (argv[i], "-static-libgcc") == 0 179 || strcmp (argv[i], "-static") == 0) 187 else if (strcmp (argv[i], "-static-libgcc") == 0) /* bird */ 180 188 shared_libgcc = 0; 189 else if (strcmp (argv[i], "-static") == 0) /* bird */ 190 { /* bird */ 191 saw_static = 1; /* bird */ 192 shared_libgcc = 0; /* bird */ 193 } /* bird */ 181 194 else if (DEFAULT_WORD_SWITCH_TAKES_ARG (&argv[i][1])) 182 195 i++; … … 187 200 else 188 201 { 189 int len; 202 int len; 190 203 191 204 if (saw_speclang) … … 230 243 i = 0; 231 244 j = 0; 232 245 233 246 /* Copy the 0th argument, i.e., the name of the program itself. */ 234 247 arglist[i++] = argv[j++]; … … 273 286 if (library) 274 287 { 275 arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX; 288 arglist[j++] = saw_profile_flag /* bird */ 289 ? saw_static ? LIBSTDCXX_PROFILE_STATIC : LIBSTDCXX_PROFILE /* bird */ 290 : saw_static ? LIBSTDCXX_STATIC : LIBSTDCXX; /* bird */ 276 291 added_libraries++; 277 292 #ifdef USE_LIBUNWIND_EXCEPTIONS … … 311 326 int lang_specific_extra_outfiles = 0; /* Not used for C++. */ 312 327 313 /* Table of language-specific spec functions. */ 328 /* Table of language-specific spec functions. */ 314 329 const struct spec_function lang_specific_spec_functions[] = 315 330 {
Note:
See TracChangeset
for help on using the changeset viewer.