pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/tree-sitter
Module Name: pkgsrc
Committed By: wiz
Date: Fri Aug 8 21:06:16 UTC 2025
Modified Files:
pkgsrc/textproc/tree-sitter: grammar.mk
Log Message:
tree-sitter: honor CPPFLAGS
Requested by Mansour Moufid on pkgsrc-users.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/tree-sitter/grammar.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/tree-sitter/grammar.mk
diff -u pkgsrc/textproc/tree-sitter/grammar.mk:1.6 pkgsrc/textproc/tree-sitter/grammar.mk:1.7
--- pkgsrc/textproc/tree-sitter/grammar.mk:1.6 Wed Apr 10 21:23:41 2024
+++ pkgsrc/textproc/tree-sitter/grammar.mk Fri Aug 8 21:06:16 2025
@@ -1,4 +1,4 @@
-# $NetBSD: grammar.mk,v 1.6 2024/04/10 21:23:41 wiz Exp $
+# $NetBSD: grammar.mk,v 1.7 2025/08/08 21:06:16 wiz Exp $
#
# Common logic to build and install tree-sitter grammars.
#
@@ -15,11 +15,11 @@ USE_LIBTOOL= yes
do-build:
cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
- libtool --mode=compile ${CC} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC parser.c
+ libtool --mode=compile ${CC} ${CPPFLAGS} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC parser.c
cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
- if [ -f scanner.c ]; then libtool --mode=compile ${CC} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC scanner.c; fi
+ if [ -f scanner.c ]; then libtool --mode=compile ${CC} ${CPPFLAGS} ${CFLAGS} -std=${GRAMMAR_C_STANDARD} -I. -c -fPIC scanner.c; fi
cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
- if [ -f scanner.cc ]; then libtool --mode=compile ${CXX} ${CXXFLAGS} -I. -c -fPIC scanner.cc; fi
+ if [ -f scanner.cc ]; then libtool --mode=compile ${CXX} ${CPPFLAGS} ${CXXFLAGS} -I. -c -fPIC scanner.cc; fi
cd ${WRKSRC}/${GRAMMAR_SOURCE_DIR} && \
libtool --mode=link ${CXX} ${LDFLAGS} -module -rpath ${PREFIX}/lib -shared -avoid-version -o ${GRAMMAR_LIBRARY_NAME}.la *.lo
Home |
Main Index |
Thread Index |
Old Index