hardinfo: fix cross, apply hardened ldflags
This commit is contained in:
parent
915aec1a27
commit
611ecda2b0
1 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hardinfo'
|
# Template file for 'hardinfo'
|
||||||
pkgname=hardinfo
|
pkgname=hardinfo
|
||||||
version=0.5.1
|
version=0.5.1
|
||||||
revision=10
|
revision=11
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config which"
|
hostmakedepends="pkg-config which"
|
||||||
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
||||||
|
@ -13,9 +13,12 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
# nocross=yes
|
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
|
vsed -i -e "s|CC =.*|CC = $CC|" \
|
||||||
|
-e "s|CCSLOW =.*|CCSLOW = $CC -O0|" \
|
||||||
|
-e "s|-o hardinfo|$LDFLAGS &|" \
|
||||||
|
Makefile.in
|
||||||
vsed -i "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" configure
|
vsed -i "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" configure
|
||||||
vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c
|
vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c
|
||||||
vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \
|
vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \
|
||||||
|
|
Loading…
Reference in a new issue