From patchwork Thu Oct 2 14:19:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 5018891 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9EF389F32B for ; Thu, 2 Oct 2014 14:19:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DBC30201F5 for ; Thu, 2 Oct 2014 14:19:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF2C9201F2 for ; Thu, 2 Oct 2014 14:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752294AbaJBOTv (ORCPT ); Thu, 2 Oct 2014 10:19:51 -0400 Received: from mail-oi0-f73.google.com ([209.85.218.73]:36450 "EHLO mail-oi0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056AbaJBOTv (ORCPT ); Thu, 2 Oct 2014 10:19:51 -0400 Received: by mail-oi0-f73.google.com with SMTP id u20so412270oif.0 for ; Thu, 02 Oct 2014 07:19:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Oi/5et+ZwQD+ITejCrGt5mmqSeG4MkBG/9KAetgi32I=; b=CNnsSVC1qnec/A+4tJ2joOG5R0btY1IRWm1SUDpxC/NMl0E+LytseguiUqcZ/ogn7M 2fcu8jTYb8oHGSxBm6GetpzO0m6Mvw4X+DaFFxJypuPdZpvTXWbLsBUGZmJQOJGCeVtC Q8yCuzw6gfIPErNUAU6C8kzMS7wOepg6QZ/sGG2ECt0J1Rs+n/rMvpUVaE/Rv9MLSLBV q/D54F0BiU9PSve4lX6xIEVs6BCcdHaavrBPBS2vbmnMjhKdEZEjEHGvfXHJ4AH1hHGL 7zTdslG0KdCQlTkiFiUfYV/mTcEj9B+m/XrmuOPpK+FrMSPJgXhiiZb+jTl8UpXWk9M/ gwwQ== X-Gm-Message-State: ALoCoQlvTMwhvBj5AtImvf2/fj0LnwfVafFfWdWEm9zBmWxRift3zvJ99eWX84ONXSH6qBu+SCZw X-Received: by 10.182.68.104 with SMTP id v8mr329725obt.3.1412259590306; Thu, 02 Oct 2014 07:19:50 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id n22si185401yhd.1.2014.10.02.07.19.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 07:19:50 -0700 (PDT) Received: from anatol.mtv.corp.google.com ([172.22.64.197]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id 4B22oh1X.1; Thu, 02 Oct 2014 07:19:50 -0700 Received: by anatol.mtv.corp.google.com (Postfix, from userid 67983) id 817F41003FC; Thu, 2 Oct 2014 07:19:49 -0700 (PDT) From: Anatol Pomozov To: linux-sparse@vger.kernel.org Cc: dan.carpenter@oracle.com, sparse@chrisli.org, Anatol Pomozov Subject: [PATCH] Link binaries with system libraries needed by LLVM Date: Thu, 2 Oct 2014 07:19:48 -0700 Message-Id: <1412259588-8542-1-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is needed on Linux Arch with latest LLVM installed Signed-off-by: Anatol Pomozov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28c4df6..25087d7 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,12 @@ LLVM_PROGS := sparse-llvm $(LLVM_PROGS): LD := g++ LLVM_LDFLAGS := $(shell llvm-config --ldflags) LLVM_CFLAGS := $(shell llvm-config --cflags | sed -e "s/-DNDEBUG//g") +LLVM_SYSTEM_LIBS := $(shell llvm-config --system-libs) LLVM_LIBS := $(shell llvm-config --libs) PROGRAMS += $(LLVM_PROGS) INST_PROGRAMS += sparse-llvm sparsec sparse-llvm.o: BASIC_CFLAGS += $(LLVM_CFLAGS) -sparse-llvm_EXTRA_OBJS := $(LLVM_LIBS) $(LLVM_LDFLAGS) +sparse-llvm_EXTRA_OBJS := $(LLVM_SYSTEM_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS) endif endif