package/pseudo: force rpath and pass our host CFLAGS
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 8 Nov 2016 22:18:32 +0000 (23:18 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 9 Nov 2016 22:28:29 +0000 (23:28 +0100)
pseudo whines when those are not set, and tries to find a suitable
value; this is usually correct but risk an incorrect guess in corner
cases.

Rather than leaving those in guess-mode, just force them to values we
know are correct.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Gaƫl PORTAY <gael.portay@savoirfairelinux.com>
Cc: Patrick Keroulas <patrick.keroulas@savoirfairelinux.com>
Cc: Erico Nunes <nunes.erico@gmail.com>
Cc: Julien BOIBESSOT <julien.boibessot@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Reviewed-by: Arnout Vandecappelle <arnout@mind.be>
[Thomas: use double quotes instead of single quotes.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pseudo/pseudo.mk

index 92de2c6f1b15ef31c6454de1a16ae13fd0f45704..a924e10c45397f2cd4202a78ec050b6a77076664 100644 (file)
@@ -16,7 +16,12 @@ HOST_PSEUDO_DEPENDENCIES = host-attr host-sqlite
 
 # configure script is not generated by autoconf, so passing --libdir
 # is necessary, even if the infrastructure passes --prefix already.
+# It also does not use CFLAGS from the environment, they need to be
+# specified with a custom --cflags option. Also force rpath to avoid
+# a warning at configure time.
 HOST_PSEUDO_CONF_OPTS = \
+       --cflags="$(HOSTCFLAGS)" \
+       --with-rpath=$(HOST_DIR)/usr/lib \
        --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \
        --libdir=$(HOST_DIR)/usr/lib \
        --with-sqlite=$(HOST_DIR)/usr