Skip to content

Commit

Permalink
Fix pret#38: Build script fails on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pizza2004 committed Mar 19, 2021
1 parent bd1b2f5 commit 07b29d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VPATH = $(srcdir)

CC = gcc

BASE_CFLAGS = -g -std=gnu11
BASE_CFLAGS = -g -std=gnu11 -Wno-implicit-function-declaration

INCLUDES = -I. -I$(srcdir)

Expand Down
2 changes: 1 addition & 1 deletion gcc_arm/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ALLOCA_FINISH = true
XCFLAGS =
TCFLAGS =
# CYGNUS LOCAL nowarnings/law
CFLAGS = -g
CFLAGS = -g -Wno-implicit-function-declaration
BOOT_CFLAGS = -O2 $(CFLAGS)
WARN_CFLAGS =
# END CYGNUS LOCAL
Expand Down
12 changes: 6 additions & 6 deletions libgcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ endif
CC1 = ../old_agbcc

libgcc.a: libgcc1.a libgcc2.a fp-bit.o dp-bit.o
$(AR) -x libgcc1.a
$(AR) -x libgcc2.a
$(AR) -x libgcc1.a;
$(AR) -x libgcc2.a;
$(AR) -rc libgcc.a *.o

LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX
Expand Down Expand Up @@ -66,19 +66,19 @@ libgcc2.a: libgcc2.c longlong.h
mv tmplibgcc2.a libgcc2.a

fp-bit.o: fp-bit.c
$(CPP) -undef -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
bash -c 'echo -e ".text\n\t.align\t2, 0\n"' >> fp-bit.s
$(AS) -mcpu=arm7tdmi -o fp-bit.o fp-bit.s
$(AS) -mcpu=arm7tdmi -o fp-bit.o fp-bit.s;
rm -f fp-bit.s

dp-bit.o: dp-bit.c
$(CPP) -undef -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
bash -c 'echo -e ".text\n\t.align\t2, 0\n"' >> dp-bit.s
$(AS) -mcpu=arm7tdmi -o dp-bit.o dp-bit.s
$(AS) -mcpu=arm7tdmi -o dp-bit.o dp-bit.s;
rm -f dp-bit.s

fp-bit.c: fp-bit-base.c
Expand Down

0 comments on commit 07b29d3

Please sign in to comment.