diff options
author | xiliuya | 2024-05-05 01:38:58 +0800 |
---|---|---|
committer | xiliuya | 2024-05-05 01:38:58 +0800 |
commit | 0eeda3794b2ed23fcb20af39e6a0339a1258e9ad (patch) | |
tree | d1ea76e28ffec48e03fe63117bcba19126a64424 /PKGBUILD | |
parent | 2dbc4bf5e77eaa625316331cefeb717ee92f2540 (diff) | |
download | aur-0eeda3794b2ed23fcb20af39e6a0339a1258e9ad.tar.gz |
- Fix compile Error.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,7 +3,7 @@ pkgname=tree-sitter-cpp pkgver=0.22.0 -pkgrel=1 +pkgrel=2 pkgdesc="C++ grammar for tree-sitter" arch=('x86_64') url="https://github.com/tree-sitter/tree-sitter-cpp" @@ -26,9 +26,9 @@ prepare() { build() { cd "$pkgname-$pkgver/src/" - cc $CFLAGS -std=c99 -c parser.c - cc $CPPFLAGS -std=c99 -c scanner.c - c++ $LDFLAGS -shared parser.o scanner.o -o "$srcdir/cpp-parser.so" + cc $CFLAGS -I. -std=c11 -fPIC -c parser.c + cc $CPPFLAGS -I. -std=c11 -fPIC -c scanner.c + cc $LDFLAGS -shared -Wl,-soname,libtree-sitter-cpp.so.0 parser.o scanner.o -o "$srcdir/cpp-parser.so" } package() { |