[vala] vala.m4: honour CC, CPPFLAGS, CFLAGS, LDFLAGS
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vala.m4: honour CC, CPPFLAGS, CFLAGS, LDFLAGS
- Date: Tue, 11 Feb 2014 21:47:47 +0000 (UTC)
commit bd1ec7117a8acbf1f4acb163a82a10aacc7ac89f
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Feb 11 15:34:04 2014 -0500
vala.m4: honour CC, CPPFLAGS, CFLAGS, LDFLAGS
These variables may be set to values that are required to build
executables. Make sure we honour them from vala.m4 when attempting to
check for packages.
https://bugzilla.gnome.org/show_bug.cgi?id=724176
vala.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala.m4 b/vala.m4
index 79c32a1..4fc0740 100644
--- a/vala.m4
+++ b/vala.m4
@@ -29,7 +29,7 @@ AC_DEFUN([_VALA_CHECK_COMPILE_WITH_ARGS],
void main(){}
_ACEOF
- AS_IF([vala_error=`$VALAC $1 -q -o conftest$ac_exeext conftest.vala 2>&1`],
+ AS_IF([vala_error=`$VALAC $1 -q --cc="${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" -o conftest$ac_exeext
conftest.vala 2>&1`],
[$2], [$3])
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]