Revision: 7781 http://sourceforge.net/p/ipcop/svn/7781 Author: owes Date: 2015-01-07 11:07:09 +0000 (Wed, 07 Jan 2015) Log Message: ----------- First attempt for gcc stage 2
Modified Paths: -------------- ipcop/branches/toolchain/lfs/gcc Modified: ipcop/branches/toolchain/lfs/gcc =================================================================== --- ipcop/branches/toolchain/lfs/gcc 2015-01-06 15:32:34 UTC (rev 7780) +++ ipcop/branches/toolchain/lfs/gcc 2015-01-07 11:07:09 UTC (rev 7781) @@ -138,20 +138,21 @@ ifeq "$(STAGE)" "toolchain" -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 +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 + # --disable-shared is mandatory to prevent a build failure later cd $(DIR_SRC)/gcc-build && \ LDFLAGS="-Wl,-rpath,/$(TOOLS_DIR)/lib" ../$(THISAPP)/configure \ --target=$(LFS_TGT) \ - --prefix=/$(TOOLS_DIR) \ + --prefix=/$(TOOLS_DIR) --with-local-prefix=/$(TOOLS_DIR) \ --disable-nls \ --disable-shared \ --disable-decimal-float --disable-target-libiberty --disable-target-zlib \ @@ -178,20 +179,20 @@ ifeq "$(PASS)" "2" # restore working --prefix on gcc-4 for startfiles - cd $(DIR_APP) && patch -Np1 -i $(DIR_DL)/$(PATCH1) + #cd $(DIR_APP) && patch -Np1 -i $(DIR_DL)/$(PATCH1) # prevent fixinclude from running - cd $(DIR_APP) && sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in + #cd $(DIR_APP) && sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in ifeq "$(MACHINE)" "i486" # build same as with bootstrap (i486 only) cd $(DIR_APP) && sed -i 's/^T_CFLAGS =$$/& -fomit-frame-pointer/' gcc/Makefile.in endif # header file name differ between arch inside directories (search for linker to find the file) # see LFS book, chapter 5.11 GCC-4 Pass 2 for info - cd $(DIR_APP) && \ - for HEADER in alpha/linux-elf.h i386/linux.h rs6000/sysv4.h sparc/linux.h; do \ - sed -i.bak "s@$(LINKER)@/$(TOOLS_DIR)&@" gcc/config/$$HEADER; \ - cat $(DIR_SRC)/config/gcc/startfiles >>gcc/config/$$HEADER; \ - done + #cd $(DIR_APP) && \ + # for HEADER in alpha/linux-elf.h i386/linux.h rs6000/sysv4.h sparc/linux.h; do \ + # sed -i.bak "s@$(LINKER)@/$(TOOLS_DIR)&@" gcc/config/$$HEADER; \ + # cat $(DIR_SRC)/config/gcc/startfiles >>gcc/config/$$HEADER; \ + # done # Only pixman tests and gettext may use openmp/libgomp, so disable that # mudflap is not used @@ -200,22 +201,23 @@ AR=$(LFS_TGT)-ar \ RANLIB=$(LFS_TGT)-ranlib \ ../$(THISAPP)/configure \ - --prefix=/$(TOOLS_DIR) \ - --with-local-prefix=/$(TOOLS_DIR) \ + --prefix=/$(TOOLS_DIR) --with-local-prefix=/$(TOOLS_DIR) \ --disable-nls \ --enable-clocale=gnu \ --enable-shared \ + --disable-multilib \ --enable-threads=posix \ + --disable-libatomic --disable-libgomp --disable-libitm --disable-libmudflap \ + --disable-libquadmath --disable-libsanitizer \ + --disable-libstdcxx-pch \ --enable-__cxa_atexit \ --enable-languages=c,c++ \ - --disable-libstdcxx-pch \ - --disable-libmudflap \ - --disable-libgomp \ $(SETTINGS) \ $(TUNEOPTIONS) \ --disable-bootstrap \ - --without-ppl \ - --without-cloog + --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 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 Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn