1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Changed makefiles board/msba2-common/tools/Makefile and tools/toolchains/build_gnuarm.sh to be compatible with gcc version 4.6.1

This commit is contained in:
Stephan Arndt 2012-05-12 15:50:52 +02:00
parent 870b10514f
commit 9f702bd8b1
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ lpc2k_pgm: $(OBJS)
pseudoterm: $(PSEUDOTERM_OBJS)
mkdir -p $(TARGETDIR)
$(CC) -lpthread -o $(TARGETDIR)/pseudoterm $(PSEUDOTERM_OBJS)
$(CC) -o $(TARGETDIR)/pseudoterm $(PSEUDOTERM_OBJS) -lpthread
chipinfo.o: boot_2xxx.h boot_23xx.h

View File

@ -39,13 +39,13 @@ build_binutils() {
fi
if [[ $HOST_GCC_VER == 4.6* ]]
then
CFLAGS="-Wno-error=unused-but-set-variable"
CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter"
else
CFLAGS="-Wno-error=unused"
fi
rm -rf binutils-build && mkdir -p binutils-build && cd binutils-build &&
../binutils-${BINUTILS_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib &&
make ${MAKE_THREADS} all CFLAGS=${CFLAGS} &&
make ${MAKE_THREADS} all CFLAGS="${CFLAGS}" &&
make install &&
cd ${GNUARM_BUILDDIR}
}
@ -109,7 +109,7 @@ build_gdb() {
rm -rf gdb-build && mkdir -p gdb-build && cd gdb-build &&
../gdb-${GDB_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib &&
make ${MAKE_THREADS} all CFLAGS=-D_FORTIFY_SOURCE=0 &&
make ${MAKE_THREADS} all CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" &&
make install &&
cd ${GNUARM_BUILDDIR}