clang: support for building elf using temporary elf-targeted binutils.
This commit is contained in:
parent
b9b9cb8a62
commit
cba6e667da
3 changed files with 10 additions and 2 deletions
|
@ -34,3 +34,6 @@ clean_gnu:
|
|||
|
||||
clean_elf:
|
||||
sh elf_build.sh clean
|
||||
|
||||
clean_clang:
|
||||
sh clang_build.sh clean
|
||||
|
|
|
@ -2,7 +2,12 @@
|
|||
|
||||
export CC=clang
|
||||
export COMPILER_TYPE=gnu
|
||||
export LD="i386-pc-minix3-ld"
|
||||
export AR="i386-pc-minix3-ar"
|
||||
export OBJCOPY="i386-pc-minix3-objcopy"
|
||||
export RANLIB="i386-pc-minix3-ranlib"
|
||||
export MAKEOBJDIR=obj-gnu
|
||||
export PATH=$PATH:/usr/pkg/bin
|
||||
export PATH=$PATH:/usr/pkg/bin:/usr/gnu_cross/bin
|
||||
export MAKEOBJDIR=obj-elf-clang
|
||||
|
||||
make $@
|
||||
|
|
|
@ -535,7 +535,7 @@ DEBUGMODE?= ${NONBINMODE}
|
|||
# All platforms are ELF.
|
||||
#
|
||||
#OBJECT_FMT= ELF
|
||||
.if !empty(CC:Mi386-pc-minix3-gcc)
|
||||
.if !empty(CC:Mi386-pc-minix3-gcc) || !empty(CC:Mclang)
|
||||
OBJECT_FMT= ELF
|
||||
.else
|
||||
OBJECT_FMT= a.out
|
||||
|
|
Loading…
Reference in a new issue