]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - cmd/zstd/compile_flags.txt.do
Refactor C-code building, use pkgconf
[tofuproxy.git] / cmd / zstd / compile_flags.txt.do
diff --git a/cmd/zstd/compile_flags.txt.do b/cmd/zstd/compile_flags.txt.do
new file mode 100644 (file)
index 0000000..d07460a
--- /dev/null
@@ -0,0 +1,5 @@
+redo-ifchange $src conf/zstd.cflags.rc conf/zstd.libs.rc
+read ZSTD_CFLAGS < conf/zstd.cflags.rc
+read ZSTD_LIBS < conf/zstd.libs.rc
+printf "%s" "$CFLAGS $ZSTD_CFLAGS $LDFLAGS $ZSTD_LIBS" |
+    tr " " "\n" | grep -v "^$" | sort | uniq