aboutsummaryrefslogtreecommitdiff
path: root/extra/procps-ng/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/procps-ng/build')
-rwxr-xr-xextra/procps-ng/build10
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/procps-ng/build b/extra/procps-ng/build
index 7537bea9..90428dc7 100755
--- a/extra/procps-ng/build
+++ b/extra/procps-ng/build
@@ -1,10 +1,14 @@
#!/bin/sh -e
-export CFLAGS="$CFLAGS -static"
-
./configure \
--prefix=/usr \
--sbindir=/usr/bin
-make
+# Fix includes for w.c
+sed -i 's|HAVE_UTMPX_H|DONT_HAVE_IT_THANK_YOU_VERY_MUCH|g' w.c
+
+# Fix includes for proc/escape.c
+sed -i '/\#endif/a #include <langinfo.h>' proc/escape.c
+
+make CCLD="${CC:-cc} -all-static"
make DESTDIR="$1" install