summaryrefslogtreecommitdiff
path: root/textproc/tree-sitter/patches/patch-Makefile
blob: 9b1c9707e0da94bbf7ad91db3ed2f406898ea694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-Makefile,v 1.1 2022/04/20 17:21:28 nia Exp $

- Avoid to possibly pass extra optimization CFLAGS
- Do not override PCLIBDIR for FreeBSD, NetBSD and DragonFly

--- Makefile.orig	2021-06-30 00:18:39.000000000 +0000
+++ Makefile
@@ -18,7 +18,7 @@ endif
 OBJ := $(SRC:.c=.o)
 
 # define default flags, and override to append mandatory flags
-CFLAGS ?= -O3 -Wall -Wextra -Werror
+CFLAGS += -Wall -Wextra
 override CFLAGS += -std=gnu99 -fPIC -Ilib/src -Ilib/include
 
 # ABI versioning
@@ -37,9 +37,6 @@ else
 	SOEXTVER = so.$(SONAME_MAJOR).$(SONAME_MINOR)
 	LINKSHARED += -shared -Wl,-soname,libtree-sitter.so.$(SONAME_MAJOR)
 endif
-ifneq (,$(filter $(shell uname),FreeBSD NetBSD DragonFly))
-	PCLIBDIR := $(PREFIX)/libdata/pkgconfig
-endif
 
 all: libtree-sitter.a libtree-sitter.$(SOEXTVER)