]> git.armaanb.net Git - asd-repo.git/blobdiff - core/libedit/build
Adapt for asd linux
[asd-repo.git] / core / libedit / build
diff --git a/core/libedit/build b/core/libedit/build
new file mode 100755 (executable)
index 0000000..eab227f
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+# Fixes building with clang when clang doesn't include stdc-predef.h by default,
+# which is where the required macro __STDC_ISO_10646__ is defined.
+sed -i '31 a #include <stdc-predef.h>' src/chartype.h
+
+./configure \
+    --prefix=/usr
+
+make
+make DESTDIR="$1" install