commit 7a830f8673ce6656f124127869b5d98dd0a3135a parent e4eb0de3956bbb9bcc7edd2cf854d9d1ee3d14b0 Author: Cem Keylan <cem@ckyln.com> Date: Sun, 4 Oct 2020 22:56:36 +0300 pciutils: proper build for libraries Diffstat:
M | extra/pciutils/build | | | 10 | +++++++--- |
M | extra/pciutils/sources | | | 3 | ++- |
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git 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 diff --git a/extra/pciutils/sources b/extra/pciutils/sources @@ -1 +1,2 @@ -https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.7.0.tar.gz +https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.7.0.tar.gz yes +https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.7.0.tar.gz no