From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Guix packaging, dealing with pkg-config Date: Thu, 25 Jul 2019 09:01:08 +0200 Message-ID: <87h87aa98r.fsf@elephly.net> References: <87d0hzbltm.fsf@elephly.net> <878ssnb92d.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50364) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqXkb-0001my-BO for help-guix@gnu.org; Thu, 25 Jul 2019 03:01:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqXka-0001yq-2U for help-guix@gnu.org; Thu, 25 Jul 2019 03:01:17 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21227) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqXkZ-0001xS-Nm for help-guix@gnu.org; Thu, 25 Jul 2019 03:01:16 -0400 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ekaitz at ElenQ Technology Cc: "help-guix@gnu.org" Ekaitz at ElenQ Technology writes: > Yeah, there are in the original makefiles of sc-im: > https://github.com/andmarti1424/sc-im/blob/freeze/src/Makefile#L124 The FreeBSD case (line 128 and following) works for me: $ guix environment --ad-hoc lua@5.1 pkg-config [env] $ pkg-config --exists lua51 && echo yes || echo no no [env] $ pkg-config --exists lua-5.1 && echo yes || echo no yes [env] $ pkg-config --cflags lua-5.1 -I/gnu/store/yl6v5ma16ya9b6npwqlrcp9pr2gqp6dc-lua-5.1.5/include [env] $ pkg-config --libs lua-5.1 -L/gnu/store/yl6v5ma16ya9b6npwqlrcp9pr2gqp6dc-lua-5.1.5/lib -llua -lm So this works just fine. -- Ricardo