From owner-freebsd-ports@freebsd.org Sat Jul 2 11:20:28 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DF6EB8641F for ; Sat, 2 Jul 2016 11:20:28 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id D8ABD2E55; Sat, 2 Jul 2016 11:20:26 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-37-105.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.37.105]) by ipmail06.adl6.internode.on.net with ESMTP; 02 Jul 2016 20:45:15 +0930 Subject: Re: what to do when base openssl isn't suitable To: Don Lewis , freebsd-ports@FreeBSD.org References: <201607011859.u61IxIBt093652@gw.catspoiler.org> From: Shane Ambler Message-ID: <5777A241.4040108@ShaneWare.Biz> Date: Sat, 2 Jul 2016 20:45:13 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <201607011859.u61IxIBt093652@gw.catspoiler.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 11:20:28 -0000 On 02/07/2016 04:29, Don Lewis wrote: > I've got a port that does not work with base openssl because it looks > for libssl.pc. Other than that, I don't think it is picky about what > flavor of ports ssl is installed. If it is looking for libssl.pc then it is using pkg-config to get the CFLAGS/CXXFLAGS/LDFLAGS to use for openssl. Search the Makefiles for pkg-config openssl --cflags --libs or the variable substituted equivalent, then patch it to suit. If you want to use the system openssl then manually adding -lssl -lcrypto where it adds the result from pkg-config should work. -- FreeBSD - the place to B...Software Developing Shane Ambler