From patchwork Fri Mar 22 02:26:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Benden X-Patchwork-Id: 1060745 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=uclibc.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benden.us Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44QSTP2GpKz9sSC for ; Fri, 22 Mar 2019 13:36:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EF46C20767; Fri, 22 Mar 2019 02:36:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i-c5hr0yBCg7; Fri, 22 Mar 2019 02:36:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 208C121F6F; Fri, 22 Mar 2019 02:36:17 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 85CBA1BF966 for ; Fri, 22 Mar 2019 02:36:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8292221F6F for ; Fri, 22 Mar 2019 02:36:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KFIsuFrWLET0 for ; Fri, 22 Mar 2019 02:36:14 +0000 (UTC) X-Greylist: delayed 00:09:26 by SQLgrey-1.7.6 Received: from mx.thrallingpenguin.com (secure.thrallingpenguin.com [198.101.52.11]) by silver.osuosl.org (Postfix) with ESMTPS id DAA172152B for ; Fri, 22 Mar 2019 02:36:14 +0000 (UTC) Received: from wrkstn-xps-8920.benden.us (ip98-171-24-4.ph.ph.cox.net [98.171.24.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by secure.thrallingpenguin.com (Postfix) with ESMTPSA id 44QSGG2w9hzsZXP4; Thu, 21 Mar 2019 19:26:46 -0700 (MST) Received: by wrkstn-xps-8920.benden.us (Postfix, from userid 1000) id 44QSGD5NcmzFrFB; Thu, 21 Mar 2019 19:26:44 -0700 (MST) From: Joseph Benden To: uclibc@uclibc.org Subject: [PATCH] buildsys: Preserve arguments passed on Date: Thu, 21 Mar 2019 19:26:09 -0700 Message-Id: <1553221569-2164-1-git-send-email-joe@benden.us> X-Mailer: git-send-email 2.7.4 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" This patch ensures all arguments are quoted, during command-line construction. This fixes compilation where spaces occur within the arguments. Additional Information: https://github.com/openwrt/openwrt/pull/1620 Signed-off-by: Joseph Benden --- bin/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/Makefile.in b/bin/Makefile.in index 8d11316..17e0ae5 100644 --- a/bin/Makefile.in +++ b/bin/Makefile.in @@ -34,7 +34,7 @@ define do_wrapper $(Q)echo 'WRAPPER_INCLIB="Y"' >> $@.tmp $(Q)echo 'while [ -n "$$1" ]' >> $@.tmp $(Q)echo 'do' >> $@.tmp - $(Q)echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS $$1"' >> $@.tmp + $(Q)echo ' WRAPPER_OPTIONS="$$WRAPPER_OPTIONS '"'"'$$1'"'"'"' >> $@.tmp $(Q)echo ' if [ "$$1" = "-c" -o "$$1" = "-E" -o "$$1" = "-S" ]' >> $@.tmp $(Q)echo ' then' >> $@.tmp $(Q)echo ' WRAPPER_INCLIB="N"' >> $@.tmp @@ -51,7 +51,7 @@ define do_wrapper $(Q)echo 'fi' >> $@.tmp $(Q)echo '' >> $@.tmp $(Q)echo '[ -n "$$V" ] && [ $$V -gt 1 ] && echo $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $@.tmp - $(Q)echo 'exec $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) $$WRAPPER_INCLUDEDIR $$WRAPPER_OPTIONS' >> $@.tmp + $(Q)echo 'eval $(CXX) $(GEN_CFLAGS) $(GEN_CXXFLAGS) $(EH_CXXFLAGS) "$$WRAPPER_INCLUDEDIR" "$$WRAPPER_OPTIONS"' >> $@.tmp $(Q)echo '' >> $@.tmp $(Q)chmod 0755 $@.tmp $(Q)mv $@.tmp $@