[oe-commits] org.oe.dev gcc csl 2008: remove ldflags.patch that does the wrong thing, disable multilib, and remove some more patches

koen commit oe at amethyst.openembedded.net
Tue May 13 08:08:20 UTC 2008


gcc csl 2008: remove ldflags.patch that does the wrong thing, disable multilib, and remove some more patches

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: fe12b769041431c6b498516cbc75a99a832863d5
ViewMTN: http://monotone.openembedded.org/revision/info/fe12b769041431c6b498516cbc75a99a832863d5
Files:
1
packages/gcc/gcc-cross_csl-arm-2008q1.bb
packages/gcc/gcc-csl-arm-2008q1.inc
Diffs:

#
# mt diff -rcf73613ead19b9c2c1bcd81d7b902879a3686b16 -rfe12b769041431c6b498516cbc75a99a832863d5
#
#
#
# patch "packages/gcc/gcc-cross_csl-arm-2008q1.bb"
#  from [3a7f4b97cfe75af423fbf07b97ee656bc6bf4f80]
#    to [8bae2d3dc0c0205410bf9e2f1c86270225679095]
# 
# patch "packages/gcc/gcc-csl-arm-2008q1.inc"
#  from [f1cb10e074cfdf48e8cb5cd8774368421ff326af]
#    to [b16cc5fbad679f5597b8947ce443ea4771251c69]
#
============================================================
--- packages/gcc/gcc-cross_csl-arm-2008q1.bb	3a7f4b97cfe75af423fbf07b97ee656bc6bf4f80
+++ packages/gcc/gcc-cross_csl-arm-2008q1.bb	8bae2d3dc0c0205410bf9e2f1c86270225679095
@@ -7,6 +7,20 @@ SRC_URI_append_fail-fast = " file://zeck
 
 SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
 
-EXTRA_OECONF += "--disable-libunwind-exceptions --with-mpfr=${STAGING_DIR_NATIVE}${layout_exec_prefix}"
+EXTRA_OECONF += "--disable-multilib --disable-libunwind-exceptions --with-mpfr=${STAGING_DIR_NATIVE}${layout_exec_prefix}"
 
+#We don't want i686 linux ending up in the CFLAGS_FOR_TARGET like this: -isystem/OE/angstrom-tmp/staging/i686-linux/usr/include
+CFLAGS = ""
+CXXFLAGS = ""
+LDFLAGS = ""
+
+# staging-linkage and cross-linkage recipes don't work anymore, so do it by hand for this backwards CSL toolchain
+do_compile_prepend() {
+	ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/crt*.o ${CROSS_DIR}/${TARGET_SYS}/lib/
+	ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/ld-* ${CROSS_DIR}/${TARGET_SYS}/lib/
+	ln -sf ${STAGING_DIR_TARGET}/lib/libc* ${CROSS_DIR}/${TARGET_SYS}/lib/ 
+	sed -i -e 's:gcc_no_link=yes:gcc_no_link=no:' ${S}/libstdc++-v3/configure
+
+}
+
+ARCH_FLAGS_FOR_TARGET += " -L${STAGING_DIR_TARGET}${layout_libdir} -isystem${STAGING_DIR_TARGET}${layout_includedir}"
-ARCH_FLAGS_FOR_TARGET += "-L${STAGING_DIR_TARGET}${layout_libdir} -isystem${STAGING_DIR_TARGET}${layout_includedir}"
============================================================
--- packages/gcc/gcc-csl-arm-2008q1.inc	f1cb10e074cfdf48e8cb5cd8774368421ff326af
+++ packages/gcc/gcc-csl-arm-2008q1.inc	b16cc5fbad679f5597b8947ce443ea4771251c69
@@ -6,17 +6,32 @@ SRC_URI = "http://www.codesourcery.com/p
 FILESDIR = "${FILE_DIRNAME}/gcc-csl-arm"
 
 SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-eabi/arm-2008q1-126-arm-none-eabi.src.tar.bz2 \
+#           file://100-uclibc-conf.patch;patch=1 \
+#           file://103-uclibc-conf-noupstream.patch;patch=1 \
+#           file://200-uclibc-locale.patch;patch=1 \
+#           file://203-uclibc-locale-no__x.patch;patch=1 \
+#           file://204-uclibc-locale-wchar_fix.patch;patch=1 \
+#           file://205-uclibc-locale-update.patch;patch=1 \
+#           file://300-libstdc++-pic.patch;patch=1 \
+#           file://302-c99-snprintf.patch;patch=1 \
+#           file://303-c99-complex-ugly-hack.patch;patch=1 \
+#           file://304-index_macro.patch;patch=1 \
+#           file://305-libmudflap-susv3-legacy.patch;patch=1 \
+#           file://306-libstdc++-namespace.patch;patch=1 \
+#           file://307-locale_facets.patch;patch=1 \
+#           file://402-libbackend_dep_gcov-iov.h.patch;patch=1 \
+#           file://602-sdk-libstdc++-includes.patch;patch=1 \
            file://gcc41-configure.in.patch;patch=1 \
            file://arm-nolibfloat.patch;patch=1 \
            file://arm-softfloat.patch;patch=1 \
-           file://ldflags.patch;patch=1 \
            file://zecke-xgcc-cpp.patch;patch=1 \
-           file://gfortran.patch;patch=1 \
-           file://fortran-static-linking.patch;patch=1 \
+#           file://gfortran.patch;patch=1 \
+#           file://fortran-static-linking.patch;patch=1 \
 #           file://gcc-configure-no-fortran.patch;patch=1;pnum=1 \
 #           file://gcc-new-makeinfo.patch;patch=1 \
 "
 
+
 S = "${WORKDIR}/gcc-4.2"
 
 do_unpack2() {
@@ -26,8 +41,8 @@ FORTRAN = ""
 
 # Language Overrides
 FORTRAN = ""
-FORTRAN_linux-gnueabi = ",fortran"
-JAVA = ",java"
+#FORTRAN_linux-gnueabi = ",fortran"
+#JAVA = ",java"
 
 EXTRA_OECONF_BASE = "--disable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap"
 ARM_INSTRUCTION_SET = "arm"






More information about the Openembedded-commits mailing list