From owner-freebsd-ports@FreeBSD.ORG Sat Jan 21 21:02:39 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68A2A1065672; Sat, 21 Jan 2012 21:02:39 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 142438FC17; Sat, 21 Jan 2012 21:02:38 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q0LL2bBQ056804; Sat, 21 Jan 2012 15:02:37 -0600 (CST) (envelope-from stephen@missouri.edu) Message-ID: <4F1B27ED.9070005@missouri.edu> Date: Sat, 21 Jan 2012 15:02:37 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: FreeBSD Ports Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Montgomery-Smith Subject: LDFLAGS mystery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2012 21:02:39 -0000 If I build a port that uses "USE_FORTRAN", then the variable ${LDFLAGS} has an extra space in it. For example %cd /usr/ports/math/lapack %make -V LDFLAGS -Wl,-rpath=/usr/local/lib/gcc46 %make -V MAKE_ENV .... LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc46" ... I am trying to create a port in which this creates problems. Where does the extra space at the beginning come from, and how do I get rid of it?