==> Regarding configure pie problem; [EMAIL PROTECTED] adds:
raven> Hi Jeff,
raven> I have a problem on the sparc64 arch where the -pie link fails to
raven> produce a working executable. This is not detected by the autoconf
raven> test.
raven> When you get a chance could you check the following patch an an arch
raven> you know works please.
--- 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"
Okay, change that -fpie to -fPIE (at least for sparc, don't think it hurts
if we do this for everyone). And I just confirmed with Jakub, that it is
better to actually try to run the program:
<jakub> phro: if you have old glibc on sparc, it will compile and link,
but not run e.g.
Thanks, Ian,
Jeff
_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs