aboutsummaryrefslogtreecommitdiff
path: root/extra/pciutils/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pciutils/build')
-rwxr-xr-xextra/pciutils/build16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/pciutils/build b/extra/pciutils/build
new file mode 100755
index 00000000..24867e82
--- /dev/null
+++ b/extra/pciutils/build
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+mk() {
+ make \
+ CC="${CC:-cc}" \
+ OPT="$CFLAGS -fPIC" \
+ ZLIB=yes \
+ PREFIX=/usr \
+ SBINDIR=/usr/bin \
+ SHAREDIR=/usr/share/hwdata \
+ LDFLAGS="$LDFLAGS -static" \
+ "$@"
+}
+
+mk
+mk DESTDIR="$1" install install-lib