mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
sessreg: set CFLAGS only if target is *-musl
This fix seems to be required to build sessreg with gcc-5.4.0.
This commit is contained in:
parent
0a426b62f3
commit
1e800a04f2
1 changed files with 9 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'sessreg'.
|
# Template build file for 'sessreg'.
|
||||||
pkgname=sessreg
|
pkgname=sessreg
|
||||||
version=1.1.0
|
version=1.1.0
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libX11-devel"
|
makedepends="libX11-devel"
|
||||||
|
@ -12,10 +12,14 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
|
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
|
||||||
checksum=551177657835e0902b5eee7b19713035beaa1581bbd3c6506baa553e751e017c
|
checksum=551177657835e0902b5eee7b19713035beaa1581bbd3c6506baa553e751e017c
|
||||||
|
|
||||||
# musl does not define _WTMPX_FILE, use WTMP_FILE instead.
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
CFLAGS="-D_WTMPX_FILE=WTMP_FILE -D_PATH_WTMPX=_PATH_WTMP"
|
*-musl)
|
||||||
# musl does not define _UTMPX_FILE, use UTMP_FILE instead.
|
# musl does not define _WTMPX_FILE, use WTMP_FILE instead.
|
||||||
CFLAGS+=" -D_UTMPX_FILE=UTMP_FILE -D_PATH_UTMPX=_PATH_UTMP"
|
CFLAGS="-D_WTMPX_FILE=WTMP_FILE -D_PATH_WTMPX=_PATH_WTMP"
|
||||||
|
# musl does not define _UTMPX_FILE, use UTMP_FILE instead.
|
||||||
|
CFLAGS+=" -D_UTMPX_FILE=UTMP_FILE -D_PATH_UTMPX=_PATH_UTMP"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
|
|
Loading…
Add table
Reference in a new issue