From owner-freebsd-ports@FreeBSD.ORG Sun Apr 28 06:36:00 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 031F137C for ; Sun, 28 Apr 2013 06:36:00 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) by mx1.freebsd.org (Postfix) with ESMTP id D635F1B21 for ; Sun, 28 Apr 2013 06:35:59 +0000 (UTC) Received: from [192.168.0.20] (unknown [130.255.16.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 9382B43C32 for ; Sun, 28 Apr 2013 01:35:54 -0500 (CDT) Message-ID: <517CC341.6080300@marino.st> Date: Sun, 28 Apr 2013 08:35:45 +0200 From: John Marino User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: graphics/rawtherapee 4.0.10 issue References: <20130427203111.169E736F4F17@dx.burplex.com> In-Reply-To: <20130427203111.169E736F4F17@dx.burplex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Apr 2013 06:36:00 -0000 On 4/27/2013 22:31, Waitman Gobble wrote: > I have updated the port for rawtherapee 4.0.10, the new version is totally > awesome.. > There is one issue that I do not understand how to address in my port. > > Since rawtherapee uses OpenMP / libgomp it links to /usr/lib/libgomp.so which > is from base gcc, and > too old. even if gcc4.6 is specified in the port it seems to link to gomp in > /usr/lib.. > > SO the question is, how do I address this issue in the port Makefile?? using > USE_GCC=4.6 does not seem to get it to link to the gcc4.6 libraries for some > reason, I'm missing something. From a conceptual point of view, rawtherapee needs to set the runpath of the executables (e.g. -Wl,-R) to gcc46 library path during linking. And then remove any ldconfig directives in the makefile. You may be able to set this in LDFLAGS in the makefile, or you may have to patch the rawtherepee makefile with a variable that the rawtherepee makefile can substitute later with REINPLACE_CMD. Obviously it needs to work with gcc47, 48, etc. as well. (Sorry, I didn't actually look at any files, I'm just talking about approaches and concepts.) John