Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 18:18:43 -0500
From:      Jeremy Messenger <mezz.freebsd@gmail.com>
To:        Niclas Zeising <zeising@daemonic.se>
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>, lua@freebsd.org
Subject:   Re: lang/lua: It does need gmake.
Message-ID:  <CADLFtteovehhbxkuNrvW0=wrbEz=Jrd_ZWm6Q2kCFZFrwLQUmg@mail.gmail.com>
In-Reply-To: <4F625BB3.4060700@daemonic.se>
References:  <CADLFttcrjwgLjmYhAs=HNiWa%2BefkKP_dMRZkdPaeVQJDLd1_tg@mail.gmail.com> <4F625BB3.4060700@daemonic.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 15, 2012 at 4:14 PM, Niclas Zeising <zeising@daemonic.se> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLFtteovehhbxkuNrvW0=wrbEz=Jrd_ZWm6Q2kCFZFrwLQUmg>