aboutsummaryrefslogtreecommitdiff
path: root/extra/procps-ng/build
blob: 90428dc72f46e88fbfee036eff028e5f7b6fe0fa (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
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