]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - cmd/zstd/build
No redo, refactor project building, simplify it
[tofuproxy.git] / cmd / zstd / build
diff --git a/cmd/zstd/build b/cmd/zstd/build
new file mode 100755 (executable)
index 0000000..4ea349b
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+PKGCONF="${PKGCONF:-`command -v pkgconf || command -v pkg-config`}"
+${CC:-cc} -fstrict-aliasing $CFLAGS `$PKGCONF --cflags libzstd` -o ${1%%.c} $1 `$PKGCONF --libs libzstd` -lpthread