diff options
author | huderlem <huderlem@gmail.com> | 2020-02-15 09:06:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 09:06:38 -0600 |
commit | 74e171579e0bbefbd72b83f3764fe504464bbdbe (patch) | |
tree | 8db5aacbe963fef56eb2d9965fc87db1a6642387 /gcc_arm/build-make | |
parent | 27176890c4a688ea7de44d3f55af32827016a9fd (diff) | |
parent | c6bcd24dfe44d58ed1b6bef6653270dbf6cd6bfa (diff) |
Merge pull request #30 from camthesaxman/arm_support
Build ARM compiler
Diffstat (limited to 'gcc_arm/build-make')
-rwxr-xr-x | gcc_arm/build-make | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gcc_arm/build-make b/gcc_arm/build-make new file mode 100755 index 0000000..f9049ae --- /dev/null +++ b/gcc_arm/build-make @@ -0,0 +1,35 @@ +# We have to use the cross-compiler we just built to compile it. +CC = gcc -b $(host) + +# Need those to compile binaries running on host machine. +# It is configured by +# +# configure --host=target_cpu-target_os \ +# --target=host=target_cpu-target_os --build=host_cpu-host_os +# +# That HOST stuff has to be taken care of very carefully. +HOST_PREFIX=l- +HOST_PREFIX_1=$(HOST_PREFIX) +HOST_CC=$(CC) -b $(build) +HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) +HOST_CLIB= +HOST_LDFLAGS=$(LDFLAGS) +HOST_CPPFLAGS=$(ALL_CPPFLAGS) +HOST_ALLOCA=$(ALLOCA) +HOST_MALLOC=$(MALLOC) +HOST_OBSTACK=$(OBSTACK) + +# To build the native compiler with the cross compiler, the headers +# for the target are already fixed. And /usr/include is for host, not +# target. +FIXINCLUDES=Makefile.in + +# Don't run fixproto either +STMP_FIXPROTO = + +# Cause installation using install-build. We do nothing here. +#INSTALL_TARGET = install-build + +# Don't try to compile the things we can't compile or we have made +# while making gcc with the cross-compiler. +#ALL = all.build |