From patchwork Thu Oct 2 20:09:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 5020391 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 30442C11AB for ; Thu, 2 Oct 2014 20:09:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F10B201F2 for ; Thu, 2 Oct 2014 20:09:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A006E201CD for ; Thu, 2 Oct 2014 20:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbaJBUJx (ORCPT ); Thu, 2 Oct 2014 16:09:53 -0400 Received: from mail-ig0-f202.google.com ([209.85.213.202]:43356 "EHLO mail-ig0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbaJBUJw (ORCPT ); Thu, 2 Oct 2014 16:09:52 -0400 Received: by mail-ig0-f202.google.com with SMTP id r10so22584igi.5 for ; Thu, 02 Oct 2014 13:09:52 -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:in-reply-to :references; bh=5+dVwyxjfPADQ5UP0Mefly0gve4YJE8T5pZEVBNSk3s=; b=Suq5uzgtS+I6c9Kgo1fEHfbFieWIszTJ64BlIgDsns/bhbgkD5xkMIpNJjWsUUm3j0 LykZ0YAx/EVUyiJpsjSB2Zz5IKREtat0UGUeaBHqnwE0v5b7smtWlxqTOS/yejdFJHXy 4qpxYdEoa9sxS05vPqH+/GdD3t7/0M6dBKIyIXdAuyorqQdDJZ7ZA2y6EKNDHyz3MzVi Q6EQ8SEI/5L3BHESllntPo0pit4dEMBiZUYUlm1slHt0AgA3pxFGfshzHdEvTMf0F502 Tlkukr81wW2biwc3BmneFEGwbxxa1ocpQez7JJDBFYRnTbO2NczJpVUBdG0iJW0nTMey kEGQ== X-Gm-Message-State: ALoCoQkedT0Y3WUyehIE+8mpOMiHI5sDqYz4AOAtOcTx9I0ytrg2VL0T8/RZGZrZwFs+jwEvtH7O X-Received: by 10.182.51.161 with SMTP id l1mr1125433obo.13.1412280591831; Thu, 02 Oct 2014 13:09:51 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id n22si239170yhd.1.2014.10.02.13.09.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 13:09:51 -0700 (PDT) Received: from anatol.mtv.corp.google.com ([172.22.64.197]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id UKwGfR8C.1; Thu, 02 Oct 2014 13:09:51 -0700 Received: by anatol.mtv.corp.google.com (Postfix, from userid 67983) id F1F04100361; Thu, 2 Oct 2014 13:09:50 -0700 (PDT) From: Anatol Pomozov To: josh@joshtriplett.org, linux-sparse@vger.kernel.org, dan.carpenter@oracle.com, sparse@chrisli.org Cc: Anatol Pomozov Subject: [PATCH] Link binaries with system libraries needed by LLVM Date: Thu, 2 Oct 2014 13:09:43 -0700 Message-Id: <1412280583-9257-1-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <20141002195322.GB3528@jtriplet-mobl1> References: <20141002195322.GB3528@jtriplet-mobl1> 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28c4df6..c0ffd04 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,7 @@ 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_LIBS := $(shell llvm-config --libs) +LLVM_LIBS := $(shell llvm-config --libs --system-libs) PROGRAMS += $(LLVM_PROGS) INST_PROGRAMS += sparse-llvm sparsec sparse-llvm.o: BASIC_CFLAGS += $(LLVM_CFLAGS)