1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/jsl/Makefile
Ed Maste ec448dc159 devel/jsl: 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
Approved by:	portmgr (LLD_UNSAFE blanket)
Sponsored by:	The FreeBSD Foundation
2017-12-20 02:08:27 +00:00

35 lines
851 B
Makefile

# Created by: Hye-Shik Chang
# $FreeBSD$
PORTNAME= jsl
PORTVERSION= 0.3.0
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.Awfulhak.org/pub/jsl/ \
http://www.javascriptlint.com/download/
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= delphij@FreeBSD.org
COMMENT= Analyzes JavaScript code looking for bugs and signs of poor quality
PLIST_FILES= bin/jsl
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USES= gmake
MAKEFILE= Makefile.ref
MAKE_ARGS= OS_CFLAGS="-DXP_UNIX -DHAVE_VA_COPY -DVA_COPY=va_copy"
CFLAGS+= -fPIC
MAKE_JOBS_UNSAFE= yes
LLD_UNSAFE= yes
.include <bsd.port.pre.mk>
JSLCFG_CMD= ${UNAME} -sr | ${SED} 's, ,,'
post-patch:
${GREP} -v 'CC =' ${WRKSRC}/config/Linux_All.mk > ${WRKSRC}/config/$$(${JSLCFG_CMD}).mk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/$$(${JSLCFG_CMD})_DBG.OBJ/jsl ${STAGEDIR}${PREFIX}/bin/jsl
.include <bsd.port.post.mk>