Hi Jeff,

I have a problem on the sparc64 arch where the -pie link fails to produce 
a working executable. This is not detected by the autoconf test.

When you get a chance could you check the following patch an an arch you 
know works please.

Ian

--- autofs-4.1.2/configure.in.orig      2004-05-09 10:31:30.000000000 +0800
+++ autofs-4.1.2/configure.in   2004-05-09 10:59:46.000000000 +0800
@@ -133,11 +133,12 @@
 int main(void) { return 0; }
 EOF
 CFLAGS=-fpie
+LDFLAGS=-pie
 DAEMON_CFLAGS=
 DAEMON_LDFLAGS=
 AC_MSG_CHECKING([whether gcc accepts -fpie])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
-                 [gcc_supports_pie=yes], [gcc_supports_pie=no])
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
+             [gcc_supports_pie=yes], [gcc_supports_pie=no])
 AC_MSG_RESULT([$gcc_supports_pie])
 if test $gcc_supports_pie = yes ; then
        DAEMON_CFLAGS="-fpie"

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to