mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
package/pkg-autotools: don't use config.site when cross-compiling
On fedora 20 64bits host, the file /usr/share/config.site contains a fix for installing libraries into /lib/lib64 on 64bits systems that redefine libdir in the generated Makefile For safety and avoid the bug #7262 [1], disable loading this file when running the configure script for the target and the host. Note: configure scripts generated with autoconf < 2.65 will source the /dev/null and print this line: "configure: loading site script /dev/null" [1]: https://bugs.busybox.net/show_bug.cgi?id=7262 Signed-off-by: Romain Naour <romain.naour@openwide.fr> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
139cb9d999
commit
f8d4fe376c
@ -126,6 +126,7 @@ define $(2)_CONFIGURE_CMDS
|
|||||||
$$(TARGET_CONFIGURE_OPTS) \
|
$$(TARGET_CONFIGURE_OPTS) \
|
||||||
$$(TARGET_CONFIGURE_ARGS) \
|
$$(TARGET_CONFIGURE_ARGS) \
|
||||||
$$($$(PKG)_CONF_ENV) \
|
$$($$(PKG)_CONF_ENV) \
|
||||||
|
CONFIG_SITE=/dev/null \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$$(GNU_TARGET_NAME) \
|
--target=$$(GNU_TARGET_NAME) \
|
||||||
--host=$$(GNU_TARGET_NAME) \
|
--host=$$(GNU_TARGET_NAME) \
|
||||||
@ -160,6 +161,7 @@ define $(2)_CONFIGURE_CMDS
|
|||||||
CFLAGS="$$(HOST_CFLAGS)" \
|
CFLAGS="$$(HOST_CFLAGS)" \
|
||||||
LDFLAGS="$$(HOST_LDFLAGS)" \
|
LDFLAGS="$$(HOST_LDFLAGS)" \
|
||||||
$$($$(PKG)_CONF_ENV) \
|
$$($$(PKG)_CONF_ENV) \
|
||||||
|
CONFIG_SITE=/dev/null \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="$$(HOST_DIR)/usr" \
|
--prefix="$$(HOST_DIR)/usr" \
|
||||||
--sysconfdir="$$(HOST_DIR)/etc" \
|
--sysconfdir="$$(HOST_DIR)/etc" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user