diff options
author | YamaArashi <shadow962@live.com> | 2016-04-30 12:10:24 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-30 12:10:24 -0700 |
commit | eb6255a9114c5b746a1f5921b0c88546c098ef86 (patch) | |
tree | 29b6f8acbfb5295cd84fd743437150f274a67389 /libgcc | |
parent | d1cb3194bb20a44eecafe4186cf4e368f2a4d5b8 (diff) |
fix problems building on 64-bit Linux
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgcc/Makefile b/libgcc/Makefile index d24bc01..6d50938 100644 --- a/libgcc/Makefile +++ b/libgcc/Makefile @@ -23,7 +23,7 @@ libgcc1.a: lib1thumb.asm for name in $(LIB1ASMFUNCS); \ do \ echo $${name}; \ - $(CPP) -DL$${name} -x assembler-with-cpp -o $${name}.s lib1thumb.asm; \ + $(CPP) -undef -nostdinc -DL$${name} -x assembler-with-cpp -o $${name}.s lib1thumb.asm; \ echo -e ".text\n\t.align\t2, 0\n" >> $${name}.s ; \ $(AS) -mcpu=arm7tdmi -o $${name}.o $${name}.s; \ rm -f $${name}.s; \ @@ -40,7 +40,7 @@ libgcc2.a: libgcc2.c longlong.h for name in $(LIB2FUNCS); \ do \ echo $${name}; \ - $(CPP) -I ../ginclude -nostdinc -DL$${name} -o $${name}.i libgcc2.c; \ + $(CPP) -undef -I ../ginclude -nostdinc -DL$${name} -o $${name}.i libgcc2.c; \ $(CC1) -O2 $${name}.i; \ rm -f $${name}.i; \ echo -e ".text\n\t.align\t2, 0\n" >> $${name}.s ; \ @@ -52,7 +52,7 @@ libgcc2.a: libgcc2.c longlong.h mv tmplibgcc2.a libgcc2.a fp-bit.o: fp-bit.c - $(CPP) -I ../ginclude -nostdinc -o fp-bit.i fp-bit.c + $(CPP) -undef -I ../ginclude -nostdinc -o fp-bit.i fp-bit.c $(CC1) -O2 fp-bit.i rm -f fp-bit.i echo -e ".text\n\t.align\t2, 0\n" >> fp-bit.s @@ -60,7 +60,7 @@ fp-bit.o: fp-bit.c rm -f fp-bit.s dp-bit.o: dp-bit.c - $(CPP) -I ../ginclude -nostdinc -o dp-bit.i dp-bit.c + $(CPP) -undef -I ../ginclude -nostdinc -o dp-bit.i dp-bit.c $(CC1) -O2 dp-bit.i rm -f dp-bit.i echo -e ".text\n\t.align\t2, 0\n" >> dp-bit.s |