From owner-freebsd-ports@freebsd.org Thu Sep 24 10:18:33 2020 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 82E913F3032 for ; Thu, 24 Sep 2020 10:18:33 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bxrbq6YQ9z4GFt for ; Thu, 24 Sep 2020 10:18:31 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (190-155-117-131.ip-addr.inexio.net [131.117.155.190]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 0646BDBBAA; Thu, 24 Sep 2020 12:18:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1600942709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bHtwniF4gxJ9X0kQa199gVeOIRNIrX5PiUxG4XhU+qk=; b=qUTbN5EcdWdJDca82VxMf9N/43xnN3voDZrLfevwZCtajfRDllB29lNOQ3cYE6S97uDoEe CqzplqQqvvJA1pigvOWFNJWN0TZ4rP9lnskS6WQL+huo2DawkeCs+t21k+AmeikkdytxQH q7+w/H9QekDi8ZLnqN/QdCeM68a63TA= Received: from [192.168.0.151] (190-155-117-131.ip-addr.inexio.net [131.117.155.190]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id 178F8324E31; Thu, 24 Sep 2020 12:18:27 +0200 (CEST) Subject: Re: Help with go based port (invalid flag in pkg-config --libs: -D_THREAD_SAFE ) To: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Cc: FreeBSD Mailing List References: <472de244-207e-66ad-128f-859a90817696@fechner.net> From: Matthias Fechner Message-ID: <4635f910-1b30-bfdd-4dd2-b07f60c94832@fechner.net> Date: Thu, 24 Sep 2020 12:18:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Server: anny.lostinspace.de X-Rspamd-Queue-Id: 4Bxrbq6YQ9z4GFt X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=qUTbN5Ec; dmarc=pass (policy=none) header.from=fechner.net; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 195.30.95.33 as permitted sender) smtp.mailfrom=idefix@fechner.net X-Spamd-Result: default: False [-6.33 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[fechner.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; RCVD_IN_DNSWL_MED(-0.20)[195.30.95.33:from]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.63)[-0.634]; ASN(0.00)[asn:5539, ipnet:195.30.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_LONG(-1.02)[-1.024]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 10:18:33 -0000 Am 23.09.2020 um 22:46 schrieb Fernando Apesteguía: > I found this: > > https://fipress.org/knowledge/invalid-flags-in-cgo-ldflags-pkg-config-or-invalid-flag-in-pkg-config thanks a lot, I was able to fix by whitelisting the linker flag: https://gitlab.fechner.net/mfechner/Gitlab/-/commit/b279e2a7c597f7fc43750e3fbdea381d4ae0e7da#bb7d21b8cd0b80c3126fb42d4410d6178b8150aa_13_16 Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook