Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Nov 2011 10:42:46 +0000
From:      Jan Beich <jbeich@tormail.net>
To:        Renato Botelho <garga@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/lang/lua Makefile
Message-ID:  <1RN0I0-000OIF-Uu@internal.tormail.net>
References:  <201111042001.pA4K1GF5086173@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Renato Botelho <garga@FreeBSD.org> writes:

>   FreeBSD ports repository
>
>   Modified files:
>     lang/lua             Makefile 
>   Log:
>   - Remove gmake as a dependency, it's not necessary

This breaks empty CFLAGS from make.conf. Try

  $ echo CFLAGS= >>/etc/make.conf
  $ make
  cc  -Wall -DLUA_USE_LINUX -c lapi.c
  [...]
  cc -o liblua.so  -Wall -DLUA_USE_LINUX   -shared -Wl,-soname=liblua-5.1.so.1 lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
  /usr/bin/ld: lapi.o: relocation R_X86_64_32S 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

Here is a workaround that prevents multipass reading of make.conf.
ref. http://docs.freebsd.org/cgi/mid.cgi?864odkh7vz.fsf
     commit log for lang/lua/Makefile@r1.43

Index: lang/lua/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/lua/Makefile,v
retrieving revision 1.46
diff -u -p -r1.46 Makefile
--- lang/lua/Makefile	4 Nov 2011 20:01:16 -0000	1.46
+++ lang/lua/Makefile	6 Nov 2011 10:27:23 -0000
@@ -26,7 +26,7 @@ ALL_TARGET=	freebsd
 USE_GNOME=	pkgconfig
 USE_LDCONFIG=	yes
 MAKE_JOBS_SAFE=	yes
-MAKE_ENV=	LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
+MAKE_ENV=	__MAKE_CONF= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
 
 MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
 DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RN0I0-000OIF-Uu>