2021-02-18 19:41:59 -05:00
|
|
|
# Makefile - hhl - /usr/src/toolchain/gcc-pass2
|
|
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
2021-03-02 15:13:26 -05:00
|
|
|
#
|
2021-02-18 19:41:59 -05:00
|
|
|
distname = gcc
|
|
|
|
include toolchain.mk
|
2021-03-02 15:13:26 -05:00
|
|
|
objdir = $(global_objdir)/gcc-pass2
|
2021-02-18 19:41:59 -05:00
|
|
|
config_opts += --target=$(tgt)
|
|
|
|
config_opts += --with-sysroot=$(build)
|
2021-03-10 13:53:36 -05:00
|
|
|
config_opts += --with-glibc-version=2.11
|
2021-02-18 19:41:59 -05:00
|
|
|
config_opts += --enable-languages=c,c++
|
|
|
|
config_opts += --disable-multilib
|
|
|
|
config_opts += --disable-bootstrap
|
2021-03-10 13:53:36 -05:00
|
|
|
# For musl
|
|
|
|
#config_opts += --disable-libsanitizer
|
2021-02-18 19:41:59 -05:00
|
|
|
ifneq ($(filter i686 x86_64, $(arch)), $(arch))
|
|
|
|
config_opts += --disable-libsanitizer
|
|
|
|
endif
|
|
|
|
|
|
|
|
include targets.mk
|