lm_sensors: fix PIE

See #4572
This commit is contained in:
Juergen Buchmueller 2016-08-21 23:06:08 +02:00
parent 2b26443011
commit 47e0a5a43c

View file

@ -1,7 +1,7 @@
# Template file for 'lm-sensors'
pkgname=lm_sensors
version=3.4.0
revision=2
revision=3
build_style=gnu-makefile
make_build_args="MACHINE=${XBPS_TARGET_MACHINE#-musl}"
make_install_args="${make_build_args}
@ -16,7 +16,10 @@ homepage="http://www.lm-sensors.org/"
distfiles="http://dl.lm-sensors.org/lm-sensors/releases/${pkgname}-${version}.tar.bz2"
checksum=e0579016081a262dd23eafe1d22b41ebde78921e73a1dcef71e05e424340061f
post_extract() {
pre_build() {
sed -i prog/*/Module.mk \
-e "/^MODULE_DIR :=/i LDFLAGS := ${LDFLAGS}" \
-e 's;$(CC) $(EXLDFLAGS);$(CC) $(LDFLAGS) $(EXLDFLAGS);'
sed -i 's,asm/io.h,sys/io.h,g' prog/dump/*.c
}
libsensors_package() {