From patchwork Tue Jul 21 12:48:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3271 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4B9z1b3j6Bz3xKT for ; Tue, 21 Jul 2020 12:49:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4B9z1Y3LTlz9J; Tue, 21 Jul 2020 12:49:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4B9z1Y1fh6z2yBT; Tue, 21 Jul 2020 12:49:05 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4B9z1X0Mgvz2xb4 for ; Tue, 21 Jul 2020 12:49:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4B9z1W0fGDz9J; Tue, 21 Jul 2020 12:49:03 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1595335743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=K1FH2NfvIpYGht4PtsWu/1SnkDyXeQLGSklAuXc7kPw=; b=3UBEySHdZFePcDMCmwD02lxUDUPHfoAsdj/t41p80Km01xzx7dVjqTy0Ealq4IC9c+edP7 dKLQPS3CmClDiyBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1595335743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=K1FH2NfvIpYGht4PtsWu/1SnkDyXeQLGSklAuXc7kPw=; b=upQoHDsESVUqu1fYNhDxnRGvh86N5qNH13YJLMaR+mpqnxkyeIodX5hKbP1Cf/8zA3C6vW P3we8qG3M/YpOxmNOS66Ol9XBgHZSCG4jrLwJdW4lpQScoEqULIw3OFcXn+VRSf/BUu3Rl TcHNqZJCs5YaVCSbnJt3SBPkb234eps6g/5KRr+MbRTzxdbtJ8BQ+jn4blkUFyrHthRL+x aHa05kvek482SiBQTeTLgO3SK0cQepRuGSC2UQtIqFHqx17xdcbaRO5F9XvosWKnhE+rX/ ldcWLHWMW7TwTq8GRaw92HTHk9CN2jOBezIRT5z2BZNSk0VM0SkGFbYODzLlMQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] libloc: Apply -fno-stack-protector only on i586 Date: Tue, 21 Jul 2020 12:48:55 +0000 Message-Id: <20200721124855.3536-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" All other architectures build fine and we do not need to weaken the Perl module unnecessarily. Signed-off-by: Michael Tremer --- lfs/libloc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lfs/libloc b/lfs/libloc index 4f392baca..db430d881 100644 --- a/lfs/libloc +++ b/lfs/libloc @@ -82,7 +82,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch # Add patch for i585 to disable the stack protector. +ifeq "$(BUILD_ARCH)" "i586" cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-perl-no-stack-protector.patch +endif cd $(DIR_APP) && ./autogen.sh cd $(DIR_APP) && ./configure \