From patchwork Wed Dec 27 06:05:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 25112 Received: (qmail 59289 invoked by alias); 27 Dec 2017 06:05:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 59215 invoked by uid 89); 27 Dec 2017 06:05:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pf0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=RNv45hoDguGwkrhkmMsJo9CyyWrehSfFaMQpG6i6Gm0=; b=iZMIYLMe7RL3bxWZ/AvoijGShFpbrQ/m2rgUATDt9uPB85E5P4ubJvf4ZdMelQhK5Y 2fexlYl2CAcMF1buDcxlfUeJy3WP4TEKKBaSucsI/yQ+vg0q1nye8czrEDffiy732UBu IE4IsPjLmO8BsXQOQ7y7j4n53JQ9A3OecXtacMzARsYpZiymZVLFMjNYGV95xTwuNWdn sSNvj/Dz0nqY7jb1CF3gpsaBkJdgxPcvI+CiC9S0d2zKpYVI2Mf4wc/BEdfioFV4P1Vl hha+AXtaHoA5wqUqUaQe0q/rDUE5WGX/pf7KJaQ/npYl5SyNe8gwZaZDFG8TnJAAIv+y gL8Q== X-Gm-Message-State: AKGB3mKDDoT8M1cZ7kGBj4cotP3kX8fsPcop4p45LMEV2eADpoQzGhDd BiTTYnwU22bKZ2Vqms1DPWMNhw== X-Google-Smtp-Source: ACJfBovawyLLM45ppb3zMYKTPD9Wb3JvYtpzZyvAxV0QDrZSEiV3+cpGziXnXHBNzYXnepXxeRTFUg== X-Received: by 10.99.142.199 with SMTP id k190mr24147493pge.129.1514354755173; Tue, 26 Dec 2017 22:05:55 -0800 (PST) Subject: [PATCH v3 02/19] Allow make-link-multidir to make subdirectories Date: Tue, 26 Dec 2017 22:05:17 -0800 Message-Id: <20171227060534.3998-3-palmer@dabbelt.com> In-Reply-To: <20171227060534.3998-1-palmer@dabbelt.com> References: <20171227060534.3998-1-palmer@dabbelt.com> Cc: patches@groups.riscv.org, Palmer Dabbelt From: Palmer Dabbelt To: libc-alpha@sourceware.org The RISC-V Linux ABI doesn't define any libraries that go directly in lib, instead they go into lib/ilp32 or lib/lp64. This casuse make-link-multidir to fail when attempting to make library directories when building a static libc on multilib RISC-V systems. This patch adds '-p' to mkdir so it will make subdirectories. I've added "." as an argument so mkdir won't error out if no directories are provided -- I think "mkdir -p ." should always do nothing. --- Makerules | 1 + 1 file changed, 1 insertion(+) diff --git a/Makerules b/Makerules index 522de25cfddb..ec0f93e0b493 100644 --- a/Makerules +++ b/Makerules @@ -1081,6 +1081,7 @@ mv -f $@.new $@ endef define make-link-multidir $(patsubst %/,cd %,$(objpfx)); \ + mkdir -p -- . $(dir $(multidir)); \ $(LN_S) . $(multidir) 2> /dev/null; \ test -L $(multidir) endef