Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C584C200D54 for ; Fri, 8 Dec 2017 20:39:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C423A160C0D; Fri, 8 Dec 2017 19:39:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 16933160BFD for ; Fri, 8 Dec 2017 20:39:02 +0100 (CET) Received: (qmail 88700 invoked by uid 500); 8 Dec 2017 19:39:02 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 88689 invoked by uid 99); 8 Dec 2017 19:39:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2017 19:39:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C14A9C152A for ; Fri, 8 Dec 2017 19:39:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zM-GK3bUJqLB for ; Fri, 8 Dec 2017 19:39:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E9BC75F39E for ; Fri, 8 Dec 2017 19:39:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7CB72E0E80 for ; Fri, 8 Dec 2017 19:39:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2A008273D0 for ; Fri, 8 Dec 2017 19:39:00 +0000 (UTC) Date: Fri, 8 Dec 2017 19:39:00 +0000 (UTC) From: "James E. King, III (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (THRIFT-4412) thrift cmake does not use absolute library path, linking system libraries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 19:39:04 -0000 [ https://issues.apache.org/jira/browse/THRIFT-4412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284099#comment-16284099 ] James E. King, III commented on THRIFT-4412: -------------------------------------------- The FindBoost module inside cmake has a debug mode, try turning it on and see what it says? > thrift cmake does not use absolute library path, linking system libraries > ------------------------------------------------------------------------- > > Key: THRIFT-4412 > URL: https://issues.apache.org/jira/browse/THRIFT-4412 > Project: Thrift > Issue Type: Question > Components: Build Process > Affects Versions: 0.10.0, 0.11.0 > Reporter: Mario Emmenlauer > Assignee: James E. King, III > Priority: Minor > > I build thrift using cmake on Linux. It works generally very good on many platforms (I've tested Linux, Windows and MacOSX extensively). But one issue is plaguing me. I have my own custom boost libraries, libevent and others. I set {{CMAKE_PREFIX_PATH}} to their install directory. This generally also works well, and cmake finds the libraries. However in the final Makefile, the linker command uses {{-lxxx}} for library {{xxx}} instead of the usual cmake absolute path {{/a/b/c/libxxx.so}}. This is a problem because {{ld}} suddenly prefers the system libraries over my custom builds. This in turn breaks the build for me. > I do not have this problem with any other cmake builds. And I tried various workarounds to force cmake to use the absolute path, but failed. Did somebody maybe add this on purpose? -- This message was sent by Atlassian JIRA (v6.4.14#64029)