|
|
4d476f |
autofs-5.0.7 - configure.in: allow cross compilation
|
|
|
4d476f |
|
|
|
4d476f |
From: Chris Packham <chris.packham@alliedtelesis.co.nz>
|
|
|
4d476f |
|
|
|
4d476f |
The default behaviour of AC_RUN_IFELSE is to stop with an error if cross
|
|
|
4d476f |
compiling. Avoid this by providing the optional 4th argument to set
|
|
|
4d476f |
gcc_supports_pie=no if support for PIE cannot be detected.
|
|
|
4d476f |
|
|
|
4d476f |
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
|
|
|
4d476f |
---
|
|
|
4d476f |
|
|
|
4d476f |
CHANGELOG | 1 +
|
|
|
4d476f |
configure.in | 2 +-
|
|
|
4d476f |
2 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
4d476f |
|
|
|
4d476f |
|
|
|
4d476f |
diff --git a/CHANGELOG b/CHANGELOG
|
|
|
4d476f |
index 961e340..fe801e8 100644
|
|
|
4d476f |
--- a/CHANGELOG
|
|
|
4d476f |
+++ b/CHANGELOG
|
|
|
4d476f |
@@ -9,6 +9,7 @@
|
|
|
4d476f |
- add timeout option description to man page.
|
|
|
4d476f |
- fix null map entry order handling.
|
|
|
4d476f |
- make description of default MOUNT_WAIT setting clear.
|
|
|
4d476f |
+- configure.in: allow cross compilation.
|
|
|
4d476f |
|
|
|
4d476f |
25/07/2012 autofs-5.0.7
|
|
|
4d476f |
=======================
|
|
|
4d476f |
diff --git a/configure.in b/configure.in
|
|
|
4d476f |
index 1a24e34..90bda62 100644
|
|
|
4d476f |
--- a/configure.in
|
|
|
4d476f |
+++ b/configure.in
|
|
|
4d476f |
@@ -307,7 +307,7 @@ DAEMON_CFLAGS=
|
|
|
4d476f |
DAEMON_LDFLAGS=
|
|
|
4d476f |
AC_MSG_CHECKING([whether gcc -fPIE works])
|
|
|
4d476f |
AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
|
|
|
4d476f |
- [gcc_supports_pie=yes], [gcc_supports_pie=no])
|
|
|
4d476f |
+ [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
|
|
|
4d476f |
AC_MSG_RESULT([$gcc_supports_pie])
|
|
|
4d476f |
if test $gcc_supports_pie = yes ; then
|
|
|
4d476f |
DAEMON_CFLAGS="-fPIE"
|