From owner-freebsd-ports@FreeBSD.ORG Thu Mar 15 23:18:44 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE9861065670; Thu, 15 Mar 2012 23:18:44 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB418FC0A; Thu, 15 Mar 2012 23:18:44 +0000 (UTC) Received: by iahk25 with SMTP id k25so6085869iah.13 for ; Thu, 15 Mar 2012 16:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rmdutQRlh0AAkela9QhUSWBjOGRLShx3bFSj483uBj4=; b=0/xc2uB1HPVigedAR9jQ9I9YR9BwjSbWdOm7Mepb1DVuYBao7ngezRJmqDq3lGfGBb ceAupOYM44gseqUtcHgmGICFBtEUcEf658fpzXeaJEeEpa0saeGUMYyvKkSTnLPCLa3f cyFjRB7D5x8urbgAeTiFEbb7cqdR9W/UOgSqODxE+h93YFm4D/cWGZV0XMfmXcG46w54 jlh/H2lbeYMGmaiTM50E5Aw/1FQIDUojqU2ENb8sCODFEtHVsTWdcshu1TvPUO567I1+ RDVB+etc5JD5BYlbTC3o1XcklNJrgj8RAJpZUwEA8wdHH8F90ljl2I9lgUdFFwZfDeiB Bq1w== MIME-Version: 1.0 Received: by 10.50.135.74 with SMTP id pq10mr18045283igb.62.1331853523981; Thu, 15 Mar 2012 16:18:43 -0700 (PDT) Received: by 10.42.217.202 with HTTP; Thu, 15 Mar 2012 16:18:43 -0700 (PDT) In-Reply-To: <4F625BB3.4060700@daemonic.se> References: <4F625BB3.4060700@daemonic.se> Date: Thu, 15 Mar 2012 18:18:43 -0500 Message-ID: From: Jeremy Messenger To: Niclas Zeising Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports Mailing List , lua@freebsd.org Subject: Re: lang/lua: It does need gmake. 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: Thu, 15 Mar 2012 23:18:44 -0000 On Thu, Mar 15, 2012 at 4:14 PM, Niclas Zeising wrote: > On 2012-03-15 20:50, Jeremy Messenger wrote: >> I get a build failure on amd64: >> >> --------------------------------- >> /usr/bin/ld: lapi.o: relocation R_X86_64_32 against `luaO_nilobject_' >> can not be used when making a shared object; recompile with -fPIC >> lapi.o: could not read symbols: Bad value >> *** Error code 1 >> --------------------------------- >> >> I got it fixed by add USE_GMAKE=yes in the Makefile and now I can get >> it built ok. If you compare the build log between make and gmake. You >> will see it has different output. This >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162279 has broken it. >> >> May I commit it by add USE_GMAKE=yes back in? >> >> Thanks, >> Mezz >> >> > > Hi! > I can't reproduce the error. I just tried and succeeded in compiling and > linking lua on a x86_64 virtual machine. Figured out. Add custom CFLAGS in the make.conf and you will get a build failure with make but not gmake. Here's what I have in my make.conf: CFLAGS= -O2 -fno-strict-aliasing -pipe -g STRIP= Cheers, Mezz > The md5 sum of liblua-5.1.so.1 is also the same, regardless of using > make or gmake. > Regards! > -- > Niclas -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org