mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-06 12:52:56 +02:00
pciutils: enable PIE.
This commit is contained in:
parent
c895edd18d
commit
a29058c4e2
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pciutils'
|
# Template file for 'pciutils'
|
||||||
pkgname=pciutils
|
pkgname=pciutils
|
||||||
version=3.3.0
|
version=3.3.0
|
||||||
revision=3
|
revision=4
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="zlib-devel libkmod-devel"
|
makedepends="zlib-devel libkmod-devel"
|
||||||
depends="hwids"
|
depends="hwids"
|
||||||
|
@ -13,14 +13,14 @@ distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.ta
|
||||||
checksum=4b576a1c2570046fda83fa2c5488661de698874ab04fd8e06eef4b6ab806d58a
|
checksum=4b576a1c2570046fda83fa2c5488661de698874ab04fd8e06eef4b6ab806d58a
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no AR=${AR} \
|
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
|
||||||
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
||||||
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
||||||
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
||||||
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
|
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
|
||||||
make clean
|
make clean
|
||||||
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=yes AR=${AR} \
|
make OPT="${CFLAGS} -fPIC -DPIC -fPIE" SHARED=yes AR=${AR} \
|
||||||
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
RANLIB=${RANLIB} PREFIX=/usr CC="${CC} -pie" \
|
||||||
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
||||||
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue