aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-autotools.mk
diff options
context:
space:
mode:
authorGravatar Jörg Krause <jkrause@posteo.de>2014-10-18 00:36:32 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-18 19:27:28 +0200
commitb3ed7c2d6898e643dd399d926d0f94295b15a35c (patch)
tree77439327193d3df8367b2e8f128b4fafca283583 /package/pkg-autotools.mk
parent91709de4175a27bc5cdecd4bb65b505c726e3aa1 (diff)
downloadbuildroot-b3ed7c2d6898e643dd399d926d0f94295b15a35c.tar.gz
buildroot-b3ed7c2d6898e643dd399d926d0f94295b15a35c.tar.bz2
package/pkg-autotools.mk: set --localstatedir=/var by default
`localstatedir` is a common autoconf variable like prefix and sysconfdir. At this time 25 autotools and one generic package uses this Makefile variable. 22 of the autotools packages use --localstatedir=/var, the remaining use custom settings. Setting `localstatedir` to /var is consistent with the Filesystem Hierarchy Standard (FHS). So it's time to move it as a common definition in the autotools infrastructure. Signed-off-by: Jörg Krause <jkrause@posteo.de> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-autotools.mk')
-rw-r--r--package/pkg-autotools.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index 2c93dd96c3..3c5430f7d8 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -134,6 +134,7 @@ define $(2)_CONFIGURE_CMDS
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
+ --localstatedir=/var \
--program-prefix="" \
--disable-gtk-doc \
--disable-doc \
@@ -165,6 +166,7 @@ define $(2)_CONFIGURE_CMDS
./configure \
--prefix="$$(HOST_DIR)/usr" \
--sysconfdir="$$(HOST_DIR)/etc" \
+ --localstatedir="$$(HOST_DIR)/var" \
--enable-shared --disable-static \
--disable-gtk-doc \
--disable-doc \