freebsd-ports/archivers/lua51-zlib/Makefile
Ed Maste 92ce8e45c6 archivers/lua51-zlib: set LLD_UNSAFE
The port invokes the linker directly (not via the compiler driver).
lld does not include any default search paths (unlike the GNU BFD linker
so cannot find libraries specified as e.g. -lm or -lz.

This can be addressed by invoking the linker via the compiler driver,
or by specifying the search path explicitly with -L. For now just avoid
using lld to link the port.

PR:		214864, 221808
Sponsored by:	The FreeBSD Foundation
2017-12-20 01:58:39 +00:00

35 lines
717 B
Makefile

# Created by: Sir l33tname <sirl33tname@gmail.com>
# $FreeBSD$
PORTNAME= zlib
PORTVERSION= 1.2
DISTVERSIONPREFIX=v
CATEGORIES= archivers
PKGNAMEPREFIX= lua51-
MAINTAINER= sirl33tname@gmail.com
COMMENT= Simple streaming interface to zlib for the Lua Programming Language
LICENSE= MIT
USE_GITHUB= yes
GH_ACCOUNT= brimworks
GH_PROJECT= lua-zlib
USES= lua:51
ALL_TARGET= bsd
MAKE_ENV+= LUAPATH="${LOCALBASE}"
MAKE_ENV+= LUACPATH="${STAGEDIR}${LUA_MODLIBDIR}"
MAKE_ENV+= INCDIR="-I${LUA_INCDIR}"
MAKE_ENV+= LUALIBDIR="-L${LUA_MODLIBDIR}"
LLD_UNSAFE= yes
PLIST_FILES= ${LUA_MODLIBDIR}/zlib.so
DOCSDIR= ${STAGEDIR}/share/doc/${UNIQUENAME}
pre-install:
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
.include <bsd.port.mk>