From f28fafc5340c1b8731da899f6d45cca6b2f00bec Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Wed, 28 Sep 2016 00:14:24 +0000 Subject: [PATCH] libgcc-5.4.0 update makefile git-svn-id: svn://kolibrios.org@6553 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/toolchain/gcc/5x/libgcc/Makefile | 52 +++++++++++++----------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/contrib/toolchain/gcc/5x/libgcc/Makefile b/contrib/toolchain/gcc/5x/libgcc/Makefile index 4ba97212a8..5c557d9eb5 100644 --- a/contrib/toolchain/gcc/5x/libgcc/Makefile +++ b/contrib/toolchain/gcc/5x/libgcc/Makefile @@ -4,6 +4,8 @@ export AR = kos32-ar export LD = kos32-ld export STRIP = kos32-strip +INSTALLDIR:= /home/autobuild/tools/win32/mingw32/lib + export SDK_DIR:= $(abspath ../../../../sdk) cpu_type = i386 @@ -71,33 +73,33 @@ LIB2ADD = config/i386/gthr-kos32.c \ config/i386/libc-loader.c EH_MODEL = dw2 -CUSTOM_CRTSTUFF = yes +CUSTOM_CRTSTUFF = yes - -#crtbegin.o: config/i386/cygming-crtbegin.c + +#crtbegin.o: config/i386/cygming-crtbegin.c # $(crt_compile) -fno-omit-frame-pointer -c $< - - -#crtbeginS.o: config/i386/cygming-crtbegin.c + + +#crtbeginS.o: config/i386/cygming-crtbegin.c # $(crt_compile) -fno-omit-frame-pointer -c $< -DCRTSTUFFS_O - - + + # We intentionally use a implementation-reserved init priority of 0, - + # so allow the warning. - + #crtend.o: config/i386/cygming-crtend.c - + # $(crt_compile) -fno-omit-frame-pointer -Wno-error -c $< # This is an endfile, Use -minline-all-stringops to ensure - + # that __builtin_memset doesn't refer to the lib function memset(). - + crtfastmath.o: config/i386/crtfastmath.c - + $(gcc_compile) -mfxsr -msse -c $< LIB1ASMSRC = i386/start.S @@ -106,25 +108,25 @@ LIB1ASMFUNCS = _chkstk _chkstk_ms _start DFP_ENABLE = true LIB2ADD += config/i386/cpuinfo.c -LIB2ADD += config/i386/sfp-exceptions.c +LIB2ADD += config/i386/sfp-exceptions.c -softfp_float_modes := tf -softfp_int_modes := si di ti +softfp_float_modes := tf +softfp_int_modes := si di ti softfp_extensions := sftf dftf xftf - + softfp_truncations := tfsf tfdf tfxf - + softfp_exclude_libgcc2 := n # Omit TImode functions - + softfp_int_modes := si di - - + + # Provide fallbacks for __builtin_copysignq and __builtin_fabsq. - + LIB2ADD += config/i386/32/tf-signs.c # While emutls.c has nothing to do with EH, it is in LIB2ADDEH* @@ -467,7 +469,9 @@ all: libgcc.a libgcc.a : $(libgcc-objects) Makefile $(AR) crs libgcc.a $(libgcc-objects) -# mv -f libbfd.a $(SDK_DIR)/lib + +install: libgcc.a + mv -f libgcc.a $(INSTALLDIR)/libgcc.a \ No newline at end of file