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:
parent
870b10514f
commit
9f702bd8b1
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user