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