From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 983B9C4338F for ; Tue, 17 Aug 2021 13:02:41 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 210D860F41 for ; Tue, 17 Aug 2021 13:02:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 210D860F41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GprmH5j8Rz30CZ for ; Tue, 17 Aug 2021 23:02:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YFxAmdYE; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=xiang@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YFxAmdYE; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Gprm86bzJz2ymS for ; Tue, 17 Aug 2021 23:02:32 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0214D60F41; Tue, 17 Aug 2021 13:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629205349; bh=5PuQjEM1eX3vxqvu9eGKEl7S1kAeLgwY3hmnhFDdcUM=; h=From:To:Cc:Subject:Date:From; b=YFxAmdYEDBNah0WXoCLCuccIbC9lszdJkqnkvXUYQWsKVNj4S0FpQ55RBuwDpkn5c sNzh0f0l2HPkOgq0dZbOb+9wNq/WD0eXcZ4JQtFJeRJmIFXvFfzbRMDpVLdnqT60D7 YgY77sL6xOFhAihW7OzpcAu2wicD6bq70gYFP2xpUVtn3Y2RBPlpDBZit1i27sqBv5 QQZ+8FCKR8mHd3xGmocQIxBKytNdwqIgDXsuFPavChjizYoF3jt+LjdBB9IUcSskfj 1s1aZ9fyk5v9WGcOYvl4F3TfID96s/UKPTs/VqQWQsuZW4J0W8j8BiMEAkHgXJ1Ma/ C0IS9jWj7aV7g== From: Gao Xiang To: linux-erofs@lists.ozlabs.org Subject: [PATCH] erofs-utils: fix --with-lz4-libdir when lz4_force_static is off Date: Tue, 17 Aug 2021 21:02:05 +0800 Message-Id: <20210817130205.8996-1-xiang@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gao Xiang Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" --with-lz4-libdir doesn't work for lz4 1.9.x, hopefully it works for all cases now. Fixes: c497d89e5eac ("erofs-utils: enhance static linking for lz4 1.8.x") Signed-off-by: Gao Xiang --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 38c371c4910f..35106094d9f9 100644 --- a/configure.ac +++ b/configure.ac @@ -285,7 +285,7 @@ if test "x${have_lz4}" = "xyes"; then LZ4_LIBS="-Wl,-Bstatic -Wl,-whole-archive -Xlinker ${LZ4_LIBS} -Wl,-no-whole-archive -Wl,-Bdynamic" test -z "${with_lz4_libdir}" || LZ4_LIBS="-L${with_lz4_libdir} $LZ4_LIBS" else - test -z "${with_lz4_libdir}" || LZ4_LIBS="-R${with_lz4_libdir} $LZ4_LIBS" + test -z "${with_lz4_libdir}" || LZ4_LIBS="-L${with_lz4_libdir} -R${with_lz4_libdir} $LZ4_LIBS" fi liblz4_LIBS="${LZ4_LIBS}" fi -- 2.20.1