[coreboot] New patch to review for coreboot: d0428b3 crossgcc: fix building GDB on FreeBSD
Idwer Vollering (vidwer@gmail.com)
gerrit at coreboot.org
Sun Feb 10 00:00:12 CET 2013
Idwer Vollering (vidwer at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2342
-gerrit
commit d0428b3ad10cf928dc83b57a81bfe525d0a5d155
Author: Idwer Vollering <vidwer at gmail.com>
Date: Sat Feb 9 23:58:06 2013 +0100
crossgcc: fix building GDB on FreeBSD
crossgcc: fix building GDB on FreeBSD (and NetBSD?).
Had this patch set sitting around, pushed it to prevent bitrot.
Change-Id: I79c48da7e6700a4606c9e0c1314241db8997d3f3
Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
util/crossgcc/buildgcc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index ad2bb65..ff35542 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -562,8 +562,13 @@ printf "Building GDB ${GDB_VERSION} ... "
cd build-gdb
export PYTHONHOME=$DESTDIR$TARGETDIR
rm -f .failed
+ if [ $(uname) = "FreeBSD" -o $(uname) = "NetBSD" ] ; then
LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \
- -lpthread -ldl -lutil" \
+ -lpthread -lutil"
+ else
+ LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \
+ -lpthread -ldl -lutil"
+ fi
CC="$CC" CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \
../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR \
--target=${TARGETARCH} --disable-werror --disable-nls
More information about the coreboot
mailing list