aboutsummaryrefslogtreecommitdiff
path: root/extra/procps-ng/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-10 03:57:04 +0300
committerCem Keylan <cem@ckyln.com>2021-02-10 03:57:04 +0300
commitf3e34b5a2791dbec7046c994ea01a7b22c4bd018 (patch)
tree938eec4ef712176725a7e23e76354e9c98fc0200 /extra/procps-ng/build
parent1691995b13cb79a2f8797408f54a3180c296b3f1 (diff)
downloadrepository-f3e34b5a2791dbec7046c994ea01a7b22c4bd018.tar.gz
procps-ng: bump to 3.3.17
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