Paul Smith <[EMAIL PROTECTED]> writes: > Hi all; autofs's configure.in is not properly set up to allow for > cross-compiling. It fails trying to detect -fPIE, because configure.in > runs AC_RUN_IFELSE to run a program (which of course can't work during > cross-compilation) and does not provide a cross-compilation result. > > I'm not sure why this test for PIE exists or if it's really needed, but > if you want to keep it please add an argument for cross-compilation. > Patch is attached, against 4.1.4 (but I checked 5.00beta1 and it had the > same issue). As recommended by the autoconf manual, this patch is > pessimistic and assumes no PIE support for all cross-compilation > environments. > > I've split the patch into two: one for configure.in and one for > configure itself (I'm not sure if you source code control the configure > script: some projects do and some don't).
This is the wrong way to go about it. We should probably provide a --enable-PIE or some such option. That way, anyone who cross-compiles has the option of enabling it. -Jeff _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
