From patchwork Tue Mar 19 05:33:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Trofimovich X-Patchwork-Id: 2298731 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D6159DFB79 for ; Tue, 19 Mar 2013 05:33:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756501Ab3CSFd4 (ORCPT ); Tue, 19 Mar 2013 01:33:56 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:54128 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753347Ab3CSFdz (ORCPT ); Tue, 19 Mar 2013 01:33:55 -0400 Received: from sf.home (unknown [178.121.5.189]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id CF86133DB61; Tue, 19 Mar 2013 05:33:54 +0000 (UTC) Received: by sf.home (Postfix, from userid 1000) id 5619A666AB51; Tue, 19 Mar 2013 08:33:26 +0300 (FET) From: Sergei Trofimovich To: linux-btrfs@vger.kernel.org Cc: David Sterba , Chris Mason , Sergei Trofimovich Subject: [PATCH] Makefile: allow user set LDFLAGS for libbtrfs.so as well Date: Tue, 19 Mar 2013 08:33:24 +0300 Message-Id: <1363671204-20307-1-git-send-email-slyich@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Sergei Trofimovich Detected by gentoo's QA checker: * QA Notice: Files built without respecting LDFLAGS have been detected * Please include the following list of files in your report: * /usr/lib/libbtrfs.so.0.1 Signed-off-by: Sergei Trofimovich --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c195b3..460cca7 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ version.h: $(libs_shared): $(libbtrfs_objects) $(lib_links) send.h @echo " [LD] $@" - $(Q)$(CC) $(CFLAGS) $(libbtrfs_objects) $(lib_LIBS) -shared -Wl,-soname,libbtrfs.so -o libbtrfs.so.0.1 + $(Q)$(CC) $(CFLAGS) $(libbtrfs_objects) $(LDFLAGS) $(lib_LIBS) -shared -Wl,-soname,libbtrfs.so -o libbtrfs.so.0.1 $(libs_static): $(libbtrfs_objects) @echo " [AR] $@"