pciutils: build_pie=yes is enough.
This commit is contained in:
parent
36851847d4
commit
d74372d64c
|
@ -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=4
|
revision=5
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="zlib-devel libkmod-devel"
|
makedepends="zlib-devel libkmod-devel"
|
||||||
depends="hwids"
|
depends="hwids"
|
||||||
|
@ -11,6 +11,7 @@ license="GPL-2"
|
||||||
homepage="http://mj.ucw.cz/pciutils.html"
|
homepage="http://mj.ucw.cz/pciutils.html"
|
||||||
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
|
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
|
||||||
checksum=4b576a1c2570046fda83fa2c5488661de698874ab04fd8e06eef4b6ab806d58a
|
checksum=4b576a1c2570046fda83fa2c5488661de698874ab04fd8e06eef4b6ab806d58a
|
||||||
|
build_pie=yes
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
|
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
|
||||||
|
@ -19,8 +20,8 @@ do_build() {
|
||||||
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 -fPIE" SHARED=yes AR=${AR} \
|
make OPT="${CFLAGS}" SHARED=yes AR=${AR} \
|
||||||
RANLIB=${RANLIB} PREFIX=/usr CC="${CC} -pie" \
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue