fix(prefix.mk): gcc-freestanding
Build libgcc (relibc needs it) and disable shared. Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
parent
9ed047a91e
commit
34153db14d
|
@ -205,11 +205,12 @@ else
|
||||||
--program-prefix="$(GNU_TARGET)-" \
|
--program-prefix="$(GNU_TARGET)-" \
|
||||||
--prefix="" \
|
--prefix="" \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
|
--disable-shared \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--without-headers \
|
--without-headers \
|
||||||
&& \
|
&& \
|
||||||
$(MAKE) -j `$(NPROC)` all-gcc && \
|
$(MAKE) -j `$(NPROC)` all-gcc all-target-libgcc && \
|
||||||
$(MAKE) -j `$(NPROC)` install-gcc DESTDIR="$(ROOT)/$@.partial"
|
$(MAKE) -j `$(NPROC)` install-gcc install-target-libgcc DESTDIR="$(ROOT)/$@.partial"
|
||||||
rm -rf "$<-freestanding-build"
|
rm -rf "$<-freestanding-build"
|
||||||
cd "$@.partial" && $(PREFIX_STRIP)
|
cd "$@.partial" && $(PREFIX_STRIP)
|
||||||
touch "$@.partial"
|
touch "$@.partial"
|
||||||
|
|
Loading…
Reference in a new issue