From owner-freebsd-ports@freebsd.org Thu Sep 26 16:18:18 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5F6412C06D for ; Thu, 26 Sep 2019 16:18:18 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46fKpy37drz4TBs for ; Thu, 26 Sep 2019 16:18:18 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id 6B9A912C06C; Thu, 26 Sep 2019 16:18:18 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B5E212C06B for ; Thu, 26 Sep 2019 16:18:18 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46fKpx4Qdjz4TBr for ; Thu, 26 Sep 2019 16:18:17 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 8D57F1AA64; Thu, 26 Sep 2019 18:18:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CR4JAIZxDdCf; Thu, 26 Sep 2019 18:18:15 +0200 (CEST) Received: from [192.168.101.70] (unknown [192.168.101.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id F20F01AA63 for ; Thu, 26 Sep 2019 18:18:14 +0200 (CEST) To: "ports@freebsd.org" From: Willem Jan Withagen Subject: Using a different linker in a CMake project Message-ID: <9e4e72ba-f08a-667d-076a-f4d20614b41f@digiware.nl> Date: Thu, 26 Sep 2019 18:18:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46fKpx4Qdjz4TBr X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-5.93 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; DMARC_NA(0.00)[digiware.nl]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[9.240.74.176.list.dnswl.org : 127.0.9.2]; TO_DN_EQ_ADDR_ALL(0.00)[]; IP_SCORE(-3.43)[ip: (-9.77), ipnet: 176.74.224.0/19(-4.89), asn: 28878(-2.49), country: NL(0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2019 16:18:18 -0000 Hi, For building ceph14 in I need to use ld from the ports binutils. Mainly because of versioning that I can not get to work with the llvm linker, and is a know difference between GNU ld en LLVM ld. Just building in the project I was able to do that with: -D CMAKE_CXX_FLAGS_DEBUG=" -fuse-ld=/usr/local/bin/ld -Wno-unused-command-line-argument" So I'm trying to pass that also in the ports Makefile as a CMAKE_ARGS. But nothing thusfar I've tried does actually work. and gets the option on the commandline. So is there a way to get this to work. It is sort of tricky since CMAKE output uses cc of c++ to do linking. A brute force hack would be to rm /usr/bin/ld ln -s /usr/local/bin/ld /usr/bin/ld But I sure that that would not make it in the porst tree. So suggestions welcomed. --WjW