Revision: 7779
http://sourceforge.net/p/ipcop/svn/7779
Author: owes
Date: 2015-01-06 15:31:28 +0000 (Tue, 06 Jan 2015)
Log Message:
-----------
Update gcc to 4.9.2 in toolchain branch
Modified Paths:
--------------
ipcop/branches/toolchain/lfs/gcc
Modified: ipcop/branches/toolchain/lfs/gcc
===================================================================
--- ipcop/branches/toolchain/lfs/gcc 2015-01-06 15:26:48 UTC (rev 7778)
+++ ipcop/branches/toolchain/lfs/gcc 2015-01-06 15:31:28 UTC (rev 7779)
@@ -33,7 +33,7 @@
include Config
PKG_NAME = gcc
-VER = 4.4.5
+VER = 4.9.2
HOST_ARCH = all
OTHER_SRC = yes
@@ -59,13 +59,12 @@
###############################################################################
# Top-level Rules
###############################################################################
-objects = $(DL_FILE) \
- $(PATCH1)
+objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(PATCH1) = $(URL_LFS)/$(PKG_NAME)/$(PATCH1)
-$(DL_FILE)_MD5 = 44b3192c4c584b9be5243d9e8e7e0ed1
+$(DL_FILE)_MD5 = 4df8ee253b7f3863ad0b86359cd39c43
$(PATCH1)_MD5 = 799ef1971350d2e3c794f2123f247cc6
@@ -129,11 +128,11 @@
cd $(DIR_APP) && sed -i 's/getline/get_line/'
libiberty/testsuite/test-demangle.c
# debian
#cd $(DIR_APP) && patch -Np2 -i
$(DIR_PATCHES)/gcc-4.4_fix-warnings.patch
- cd $(DIR_APP) && patch -Np2 -i
$(DIR_PATCHES)/gcc-4.4.4_sparc-force-cpu.patch
+ #cd $(DIR_APP) && patch -Np2 -i
$(DIR_PATCHES)/gcc-4.4.4_sparc-force-cpu.patch
# Remove #ident deprecation made by mistake and removed after gcc-4.4.
That fix many shadows warnings
cd $(DIR_APP) && sed -i '/T_IDENT/s/ | DEPRECATED//' libcpp/directives.c
# fix the strict-aliasing warnings, include in gcc-4.5
- cd $(DIR_APP) && patch -p1 -i
$(DIR_PATCHES)/gcc-4.4.5_strict-aliasing.patch
+ #cd $(DIR_APP) && patch -p1 -i
$(DIR_PATCHES)/gcc-4.4.5_strict-aliasing.patch
@mkdir $(DIR_SRC)/gcc-build
@@ -142,22 +141,29 @@
ifeq "$(PASS)" "1"
# Don't depend on host gcc behavior for the first stage, there is so
many warning with gcc-4.7
cd $(DIR_APP) && sed -i -e 's/-W -Wall//' -e 's/ -Wc++-compat//'
{libcpp,libdecnumber,libiberty,gcc,fixincludes}/configure
+ # CLFS/LFS borrowed, changed fixed library paths
+ cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)_build-env.patch
+ cd $(DIR_APP) && echo -en '\n\n#undef
STANDARD_STARTFILE_PREFIX_1\n#undef STANDARD_STARTFILE_PREFIX_2\n' \
+ '#define STANDARD_STARTFILE_PREFIX_1 "/$(TOOLS_DIR)/lib/" \n' \
+ '#define STANDARD_STARTFILE_PREFIX_2 ""' >> gcc/config/linux.h
+
# --disable-shared is mandatory to prevent a build failure later
cd $(DIR_SRC)/gcc-build && \
- ../$(THISAPP)/configure \
+ LDFLAGS="-Wl,-rpath,/$(TOOLS_DIR)/lib" ../$(THISAPP)/configure
\
--target=$(LFS_TGT) \
- --prefix=/$(TOOLS_DIR) \
+ --prefix=/$(TOOLS_DIR) \
--disable-nls \
--disable-shared \
- --disable-decimal-float \
+ --disable-decimal-float --disable-target-libiberty
--disable-target-zlib \
+ --disable-multilib \
--disable-threads \
- --disable-libmudflap \
- --disable-libssp \
- --disable-libgomp \
+ --disable-libatomic --disable-libgomp --disable-libitm
--disable-libmudflap \
+ --disable-libquadmath --disable-libsanitizer
--disable-libssp \
--enable-languages=c \
- --without-ppl \
- --without-cloog \
- --with-gmp=/$(TOOLS_DIR) --with-mpfr=/$(TOOLS_DIR)
+ --without-headers --with-newlib \
+ --without-ppl \
+ --without-cloog \
+ --with-gmp=/$(TOOLS_DIR) --with-mpfr=/$(TOOLS_DIR)
--with-mpc=/$(TOOLS_DIR)
cd $(DIR_SRC)/gcc-build && make -j $(PARALLELISM)
cd $(DIR_SRC)/gcc-build && make install
# hacked with -m32 (2 in 1 DIY instruction) to support arch that build
fine (x86 and ppc) and sparc64
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn