From 17dd58ca60f50ebaa28bf3c6e660d79f936e877e Mon Sep 17 00:00:00 2001 From: David Naylor Date: Thu, 21 Mar 2019 16:26:39 +0000 Subject: [PATCH] lang/lua: workaround dlopen/libthr bug on FreeBSD 12 Submitted by: Russel Haley Differential Revision: https://reviews.freebsd.org/D18939 --- lang/lua53/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/lua53/Makefile b/lang/lua53/Makefile index 957aa3a34aa1..e0598195ff01 100644 --- a/lang/lua53/Makefile +++ b/lang/lua53/Makefile @@ -3,6 +3,7 @@ PORTNAME= lua DISTVERSION= 5.3.5 +PORTREVISION=1 CATEGORIES= lang MASTER_SITES= https://www.lua.org/ftp/ PKGNAMESUFFIX= 53 @@ -102,6 +103,9 @@ READLINE_LIBS= -lreadline # end of option vars CFLAGS+= -fPIC +# 2019-01-25: -pthread in LIBS is a work around for the following bug: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235211 +LIBS+= -pthread WITHOUT_NO_STRICT_ALIASING=yes