Changeset 255 for trunk/Makefile


Ignore:
Timestamp:
May 27, 2003, 10:09:23 PM (22 years ago)
Author:
bird
Message:

libc specs hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    • Property cvs2svn:cvs-rev changed from 1.28 to 1.29
    r254 r255  
    647647#   Because strip is broken on OS/2 we pass -s for release build and -g for
    648648#   non release builds - This overrides some stuff in src/gcc/gcc/config/i386/t-emx!
     649# For the 2nd stage we need a hack for using the right specs when linking...
    649650gcc-build-it: \
    650651                $(PATH_OBJ)/gcc/.ts.configured
     
    655656                BOOT_LDFLAGS="$(BUILD_DEBUGINFO) -Zexe -Zcrtdll" \
    656657                LIBGCC2_DEBUG_CFLAG="$(BUILD_DEBUGINFO)" \
     658                $(if $(wildcard $(PATH_OBJ)/.all-stage1), LDFLAGS="$(BUILD_DEBUGINFO) -specs $(PATH_TOP)/src/emx/src/lib/libc.specs -Zexe -Zcrtdll") \
     659                $(if $(wildcard $(PATH_OBJ)/.all-stage1), BOOT_LDFLAGS="$(BUILD_DEBUGINFO) -specs $(PATH_TOP)/src/emx/src/lib/libc.specs -Zexe -Zcrtdll") \
    657660                bootstrap
    658661else
     
    921924                                                                       
    922925# Install the compiled emx stuff to builttools.
    923 emx-builttools-stage2: 
     926emx-builttools-stage2: emx-builttools-stage2-specs
    924927        $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/  install
     928
     929# bird: for now we will just replace the specs with the constantly updated libc specs. 
     930emx-builttools-stage2-specs:
     931        -mv -f $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs \
     932                   $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/emxspecs
     933        cp $(PATH_TOP)/src/emx/src/lib/libc.specs \
     934                   $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs
    925935
    926936
Note: See TracChangeset for help on using the changeset viewer.