aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Woestenberg <leon@sidebranch.com>2009-11-25 22:34:42 +0100
committerLeon Woestenberg <leon@sidebranch.com>2009-11-25 22:34:42 +0100
commit576f5b040c54c1a0f7d974fe4965eb0dbd815ba9 (patch)
treed37270a3d6e3800f25ddbb649dd770943442c04d
parentd06eb6ee1594168d0628fc874bbb1e9206c69ff5 (diff)
downloadopenembedded-576f5b040c54c1a0f7d974fe4965eb0dbd815ba9.tar.gz
binutils-cross-nios: Build with _FORTIFY_SOURCE undefined.
The nios2 toolchain still needs FORTIFY fixes. Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
-rw-r--r--recipes/binutils/binutils-cross_nios2-2.15.bb5
-rw-r--r--recipes/binutils/binutils_nios2-2.15.bb2
2 files changed, 5 insertions, 2 deletions
diff --git a/recipes/binutils/binutils-cross_nios2-2.15.bb b/recipes/binutils/binutils-cross_nios2-2.15.bb
index b78a30ac47..e5eba211f6 100644
--- a/recipes/binutils/binutils-cross_nios2-2.15.bb
+++ b/recipes/binutils/binutils-cross_nios2-2.15.bb
@@ -2,3 +2,8 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
require binutils_${PV}.bb
require binutils-cross.inc
+# nios2-linux-uclibc-ar suffers from errors against FORTIFY_SOURCE checks on
+# GCC 4.3+ with _FORTIFY_SOURCE enabled. Either fix the bugs, take an older
+# host toolchain, or disable the checks. We disable the checks:
+CFLAGS += "-U_FORTIFY_SOURCE"
+
diff --git a/recipes/binutils/binutils_nios2-2.15.bb b/recipes/binutils/binutils_nios2-2.15.bb
index 721ad5c4b7..f6e1a85dbe 100644
--- a/recipes/binutils/binutils_nios2-2.15.bb
+++ b/recipes/binutils/binutils_nios2-2.15.bb
@@ -9,7 +9,6 @@ FILESPATHPKG =. "binutils-2.15.94.0.1:"
SRCREV = "49396897843c932623b775168c5e6e1f2a43c3c8"
-#SRC_URI = "git://sopc.et.ntust.edu.tw/git/binutils.git;protocol=git"
SRC_URI = "git://sopc.et.ntust.edu.tw/git/binutils.git;protocol=http"
SRC_URI += "\
@@ -23,6 +22,5 @@ SRC_URI += "\
# file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \
# file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1 \
-
S = "${WORKDIR}/git"