aboutsummaryrefslogtreecommitdiff
path: root/extra/pciutils/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-04 22:56:36 +0300
committerCem Keylan <cem@ckyln.com>2020-10-04 22:56:36 +0300
commit7a830f8673ce6656f124127869b5d98dd0a3135a (patch)
treed97297b9811e1c87f2ca052d1e6db00b8a93d620 /extra/pciutils/build
parente4eb0de3956bbb9bcc7edd2cf854d9d1ee3d14b0 (diff)
downloadrepository-7a830f8673ce6656f124127869b5d98dd0a3135a.tar.gz
pciutils: proper build for libraries
Diffstat (limited to 'extra/pciutils/build')
-rwxr-xr-xextra/pciutils/build10
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/pciutils/build b/extra/pciutils/build
index 24867e82..bc6e5308 100755
--- a/extra/pciutils/build
+++ b/extra/pciutils/build
@@ -8,9 +8,13 @@ mk() {
PREFIX=/usr \
SBINDIR=/usr/bin \
SHAREDIR=/usr/share/hwdata \
- LDFLAGS="$LDFLAGS -static" \
"$@"
}
-mk
-mk DESTDIR="$1" install install-lib
+
+for shared in yes no; do (
+ cd "$shared"
+
+ mk SHARED="$shared"
+ mk SHARED="$shared" DESTDIR="$1" install install-pcilib
+) done