Update to add pthread support to gcc and c++

This commit is contained in:
Jeremy Soller 2018-12-14 16:01:31 -07:00
parent 3ca66e92fe
commit ad559bfec5
No known key found for this signature in database
GPG key ID: E988B49EE78A7FB1
3 changed files with 27 additions and 6 deletions

@ -1 +1 @@
Subproject commit f60171e17b3561ce4b9ed229b70bbc88ae29f1a2 Subproject commit d34e163074751a76a75d00a15ef22b9f6f1cecf4

View file

@ -30,7 +30,12 @@ $(PREFIX)/binutils-install: $(PREFIX)/binutils
rm -rf "$<-build" "$@" rm -rf "$<-build" "$@"
mkdir -p "$<-build" "$@" mkdir -p "$<-build" "$@"
cd "$<-build" && \ cd "$<-build" && \
"$</configure" --target="$(TARGET)" --program-prefix="$(TARGET)-" --prefix="$@" --disable-werror && \ "$</configure" \
--target="$(TARGET)" \
--program-prefix="$(TARGET)-" \
--prefix="$@" \
--disable-werror \
&& \
make all -j `nproc` && \ make all -j `nproc` && \
make install -j `nproc` make install -j `nproc`
touch "$@" touch "$@"
@ -53,7 +58,14 @@ $(PREFIX)/gcc-freestanding-install: $(PREFIX)/gcc | $(PREFIX)/binutils-install
cp -r "$(PREFIX)/binutils-install" "$@" cp -r "$(PREFIX)/binutils-install" "$@"
cd "$<-freestanding-build" && \ cd "$<-freestanding-build" && \
export PATH="$@/bin:$$PATH" && \ export PATH="$@/bin:$$PATH" && \
"$</configure" --target="$(TARGET)" --program-prefix="$(TARGET)-" --prefix="$@" --disable-nls --enable-languages=c,c++ --without-headers && \ "$</configure" \
--target="$(TARGET)" \
--program-prefix="$(TARGET)-" \
--prefix="$@" \
--disable-nls \
--enable-languages=c,c++ \
--without-headers \
&& \
make all-gcc all-target-libgcc -j `nproc` && \ make all-gcc all-target-libgcc -j `nproc` && \
make install-gcc install-target-libgcc -j `nproc` make install-gcc install-target-libgcc -j `nproc`
touch "$@" touch "$@"
@ -82,10 +94,19 @@ $(PREFIX)/relibc-install: $(ROOT)/relibc | $(PREFIX_FREESTANDING_INSTALL)
$(PREFIX)/gcc-install: $(PREFIX)/gcc | $(PREFIX)/relibc-install $(PREFIX)/gcc-install: $(PREFIX)/gcc | $(PREFIX)/relibc-install
rm -rf "$<-build" "$@" rm -rf "$<-build" "$@"
mkdir -p "$<-build" mkdir -p "$<-build"
cp -r "$(PREFIX_FREESTANDING_INSTALL)" "$@" cp -r "$(PREFIX)/binutils-install" "$@"
cd "$<-build" && \ cd "$<-build" && \
export PATH="$@/bin:$$PATH" && \ export PATH="$@/bin:$$PATH" && \
"$</configure" --target="$(TARGET)" --program-prefix="$(TARGET)-" --prefix="$@" --with-sysroot="$(PREFIX)/relibc-install" --disable-nls --disable-werror --enable-languages=c,c++ && \ "$</configure" \
--target="$(TARGET)" \
--program-prefix="$(TARGET)-" \
--prefix="$@" \
--with-sysroot="$(PREFIX)/relibc-install" \
--disable-nls \
--disable-werror \
--enable-languages=c,c++ \
--enable-threads=posix \
&& \
make all-gcc all-target-libgcc all-target-libstdc++-v3 -j `nproc` && \ make all-gcc all-target-libgcc all-target-libstdc++-v3 -j `nproc` && \
make install-gcc install-target-libgcc install-target-libstdc++-v3 -j `nproc` make install-gcc install-target-libgcc install-target-libstdc++-v3 -j `nproc`
touch "$@" touch "$@"

2
relibc

@ -1 +1 @@
Subproject commit 0d2332d3680aef474f05f94f76686524d9e3530a Subproject commit f04ac7343a0b2fc7fd1125b9725a39c0efa86ddf