[BACK]Return to patch-src_Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / parallel / lua-lanes / patches

File: [cvs.NetBSD.org] / pkgsrc / parallel / lua-lanes / patches / patch-src_Makefile (download)

Revision 1.1, Sat Jul 11 16:15:09 2020 UTC (3 years, 7 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD

parallel: Add lua-lanes

Lua Lanes is a Lua extension library providing the possibility to run multiple
Lua states in parallel. It is intended to be used for optimizing performance
on multicore CPUs and to study ways to make Lua programs naturally parallel
to begin with.

$NetBSD: patch-src_Makefile,v 1.1 2020/07/11 16:15:09 nia Exp $

Respect CC/CFLAGS.

--- src/Makefile.orig	2018-11-30 12:28:50.000000000 +0000
+++ src/Makefile
@@ -88,11 +88,10 @@ ifeq "$(LUAROCKS)" ""
     # Some machines need 'MACOSX_DEPLOYMENT_TARGET=10.3' for using '-undefined dynamic_lookup'
     # (at least PowerPC running 10.4.11); does not harm the others
     #
-    CC = MACOSX_DEPLOYMENT_TARGET=10.3 gcc
     LIBFLAG = -bundle -undefined dynamic_lookup
   endif
   
-  CFLAGS=-Wall -Werror $(OPT_FLAGS) $(LUA_FLAGS)
+  CFLAGS+=-fPIC -Wall $(OPT_FLAGS) $(LUA_FLAGS)
   LIBS=$(LUA_LIBS)
 endif