aboutsummaryrefslogtreecommitdiff
path: root/extra/procps-ng/build
blob: 06737c15faad006a42a43e9580f95b1899392cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin

# Fix includes for w.c
clsed 's|HAVE_UTMPX_H|DONT_HAVE_IT_THANK_YOU_VERY_MUCH|g' src/w.c

# Fix includes for proc/escape.c
clsed '/\#endif/a #include <langinfo.h>' library/escape.c

make CCLD="${CC:-cc} -all-static"
make DESTDIR="$1" install