[coreboot] Patch set updated for coreboot: b85283d crossgcc: fix building GDB on FreeBSD

Idwer Vollering (vidwer@gmail.com) gerrit at coreboot.org
Sun Feb 10 18:28:49 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 b85283d4b411f958bbaea1389f818725cbb94fe5
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?).
    
    Since FreeBSD doesn't have libdl, these errors are shown:
    - config.log: /usr/bin/ld: cannot find -ldl
    - crossgcc-build.log: configure: error: C compiler cannot create executables
    
    Change-Id: I79c48da7e6700a4606c9e0c1314241db8997d3f3
    Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
 util/crossgcc/buildgcc | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index ad2bb65..1a2b397 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -562,15 +562,21 @@ 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 -lutil"
+#	else
 	LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \
-		 -lpthread -ldl -lutil" \
+		-lpthread -ldl -lutil"
+#	fi
 	CC="$CC" CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \
 	../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR \
 		--target=${TARGETARCH} --disable-werror --disable-nls
 	$MAKE $JOBS || touch .failed
 	$MAKE install DESTDIR=$DESTDIR || touch .failed
 	if [ ! -f .failed ]; then touch .success; fi
-) > build-gdb/crossgcc-build.log 2>&1
+)
+#) > build-gdb/crossgcc-build.log 2>&1
 test -r build-gdb/.failed && printf "${RED}failed${NC}\n" || \
 	     printf "${green}ok${NC}\n"
 test -r build-gdb/.failed && exit 1



More information about the coreboot mailing list