diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-15 13:32:41 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-15 13:32:41 -0500 |
| commit | fa3c60da8207b724d292b7a44633872c6bfec4c8 (patch) | |
| tree | 195af6554fe5ead88cda54a8361963666c923251 /configure.ac | |
initial commit
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..af311d3 --- /dev/null +++ b/configure.ac @@ -0,0 +1,16 @@ +AC_INIT([rv7], [0.0.1], [ian@osmora.org]) +AC_PROG_CC + +CC=$(pwd)/cc/gcc/bin/x86_64-pc-osmora-gcc +LD=$(pwd)/cc/toolchain/build-binutils/bin/x86_64-pc-osmora-ld +ARCH="amd64" + +MD_CFLAGS="-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -mno-avx -mno-avx2" +CFLAGS="-nostdlib -nostdinc -ffreestanding -mcmodel=kernel -fno-stack-protector $MD_CFLAGS" + +AC_SUBST(SYS_CFLAGS, [$CFLAGS]) +AC_SUBST(CC, [$CC]) +AC_SUBST(LD, [$LD]) +AC_SUBST(ARCH, [$ARCH]) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |
