From patchwork Sat Nov 21 17:15:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Guido_G=C3=BCnther?= X-Patchwork-Id: 61962 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nALHFj2v003326 for ; Sat, 21 Nov 2009 17:15:45 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id C5EDB61A3D3; Sat, 21 Nov 2009 12:15:44 -0500 (EST) Received: from int-mx04.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nALHFhiF014489 for ; Sat, 21 Nov 2009 12:15:43 -0500 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.14]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nALHFhXj026479 for ; Sat, 21 Nov 2009 12:15:43 -0500 Received: from honk.sigxcpu.org (static-87-79-238-240.netcologne.de [87.79.238.240]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nALHFSw0014635 for ; Sat, 21 Nov 2009 12:15:29 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 667FE9C003 for ; Sat, 21 Nov 2009 18:15:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 49ANzko-SSgM for ; Sat, 21 Nov 2009 18:15:27 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 96DB851E63; Sat, 21 Nov 2009 18:15:26 +0100 (CET) Date: Sat, 21 Nov 2009 18:15:25 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: dm-devel@redhat.com Message-ID: <20091121171525.GA15102@bogon.sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-RedHat-Spam-Score: -0.43 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.14 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH]: multipath-tools: check header file instead of intalled lib X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 30 Aug 2009 13:38:55 +0200 Subject: [PATCH] check header file for defintion of dm_task_no_flush instead of checking the so for the symbol (which seems to be hard to find). --- libmultipath/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libmultipath/Makefile b/libmultipath/Makefile index 13178bd..d59e2f3 100644 --- a/libmultipath/Makefile +++ b/libmultipath/Makefile @@ -14,7 +14,7 @@ OBJS = memory.o parser.o vector.o devmapper.o callout.o \ log.o configure.o structs_vec.o sysfs.o prio.o checkers.o \ lock.o waiter.o -LIBDM_API_FLUSH = $(shell if test -d /lib64 ; then objdump -T /lib64/libdevmapper.so* ; else objdump -T /lib/libdevmapper.so.* ; fi | grep -c dm_task_no_flush) +LIBDM_API_FLUSH = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_no_flush' /usr/include/libdevmapper.h) ifneq ($(strip $(LIBDM_API_FLUSH)),0) CFLAGS += -DLIBDM_API_FLUSH -D_GNU_SOURCE --