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'
|
||||
pkgname=pciutils
|
||||
version=3.3.0
|
||||
revision=3
|
||||
revision=4
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="zlib-devel libkmod-devel"
|
||||
depends="hwids"
|
||||
|
@ -13,14 +13,14 @@ distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.ta
|
|||
checksum=4b576a1c2570046fda83fa2c5488661de698874ab04fd8e06eef4b6ab806d58a
|
||||
|
||||
do_build() {
|
||||
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no AR=${AR} \
|
||||
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
|
||||
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
||||
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
||||
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
||||
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
|
||||
make clean
|
||||
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=yes AR=${AR} \
|
||||
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
||||
make OPT="${CFLAGS} -fPIC -DPIC -fPIE" SHARED=yes AR=${AR} \
|
||||
RANLIB=${RANLIB} PREFIX=/usr CC="${CC} -pie" \
|
||||
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
|
||||
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue