summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch
new file mode 100644
index 0000000000..ac18bd94bd
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-configure-in-allow-cross-compilation.patch
@@ -0,0 +1,41 @@
1autofs-5.0.7 - configure.in: allow cross compilation
2
3From: Chris Packham <chris.packham@alliedtelesis.co.nz>
4
5The default behaviour of AC_RUN_IFELSE is to stop with an error if cross
6compiling. Avoid this by providing the optional 4th argument to set
7gcc_supports_pie=no if support for PIE cannot be detected.
8
9Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
10---
11
12 CHANGELOG | 1 +
13 configure.in | 2 +-
14 2 files changed, 2 insertions(+), 1 deletions(-)
15
16
17diff --git a/CHANGELOG b/CHANGELOG
18index 961e340..fe801e8 100644
19--- a/CHANGELOG
20+++ b/CHANGELOG
21@@ -9,6 +9,7 @@
22 - add timeout option description to man page.
23 - fix null map entry order handling.
24 - make description of default MOUNT_WAIT setting clear.
25+- configure.in: allow cross compilation.
26
27 25/07/2012 autofs-5.0.7
28 =======================
29diff --git a/configure.in b/configure.in
30index 1a24e34..90bda62 100644
31--- a/configure.in
32+++ b/configure.in
33@@ -307,7 +307,7 @@ DAEMON_CFLAGS=
34 DAEMON_LDFLAGS=
35 AC_MSG_CHECKING([whether gcc -fPIE works])
36 AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
37- [gcc_supports_pie=yes], [gcc_supports_pie=no])
38+ [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
39 AC_MSG_RESULT([$gcc_supports_pie])
40 if test $gcc_supports_pie = yes ; then
41 DAEMON_CFLAGS="-fPIE"