From 5fc5983e50487347ae5fab668f19b0ba3a1a7b38 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Tue, 18 Oct 2022 07:34:27 +0200 Subject: [PATCH] build: When courageous, do build libgetopt and libtcc1. * build-aux/build-lib.sh: Move building of libc+gnu and courageous exit down. --- build-aux/build-lib.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build-aux/build-lib.sh b/build-aux/build-lib.sh index ea36bfbe..4eaead50 100755 --- a/build-aux/build-lib.sh +++ b/build-aux/build-lib.sh @@ -64,16 +64,6 @@ if test -e libc+tcc.s; then cp libc+tcc.s $mes_cpu-mes fi -if $courageous; then - exit 0 -fi - -archive libc+gnu.a $libc_gnu_SOURCES -cp libc+gnu.a $mes_cpu-mes -if test -e libc+gnu.s; then - cp libc+gnu.s $mes_cpu-mes -fi - archive libtcc1.a $libtcc1_SOURCES cp libtcc1.a $mes_cpu-mes if test -e libtcc1.s; then @@ -85,3 +75,13 @@ cp libgetopt.a $mes_cpu-mes if test -e libgetopt.s; then cp libgetopt.s $mes_cpu-mes fi + +if $courageous; then + exit 0 +fi + +archive libc+gnu.a $libc_gnu_SOURCES +cp libc+gnu.a $mes_cpu-mes +if test -e libc+gnu.s; then + cp libc+gnu.s $mes_cpu-mes +fi