[BACK]Return to patch-Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / converters / lua-iconv / patches

File: [cvs.NetBSD.org] / pkgsrc / converters / lua-iconv / patches / patch-Makefile (download)

Revision 1.1, Wed Jul 8 15:11:29 2020 UTC (9 months, 1 week ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD

lua-iconv: missing patch

$NetBSD: patch-Makefile,v 1.1 2020/07/08 15:11:29 nia Exp $

Honour environment.

--- Makefile.orig	2012-05-07 02:27:38.000000000 +0000
+++ Makefile
@@ -32,8 +32,8 @@ OMIT_FRAME_PTR = -fomit-frame-pointer
 
 LUABIN = lua
 LUAPKG = lua5.2
-CFLAGS = `pkg-config $(LUAPKG) --cflags` -fPIC -O3 -Wall $(OMIT_FRAME_PTR)
-LFLAGS = -shared
+CFLAGS+= -Wall -fPIC
+LFLAGS = $(LDFLAGS) -shared
 
 INSTALL_PATH = `$(LUABIN) -e'                           \
     for dir in package.cpath:gmatch("(/[^?;]+)?") do    \