et_dyn -fpie

Robert Connolly cendres at
Sun Feb 1 21:22:26 PST 2004

Sorry to bring bad news, but check this out:

Line 5428 of glibc-2.3.3-20031202/configure which is in lfs cvs now.

    cat > conftest.c <<EOF
int foo;

This does not build, there is no main() and the test always fails.

Line 5663 of glibc-2.3-20040129/configure

    cat > conftest.c <<EOF
int foo;
main () { return 0;}

I don't know what to suggest. The glibc-2.3.3 in cvs lfs is broken and won't 
autodetect -fpie. If I add "main () { return 0;}" to glibc-2.3.3-20031202/
configure it gives "checking for -fpie... yes", however I am concerned that 
-fpie configure is broken in glibc-2.3.3-20031202 for a reason, which was 
later fixed (why else would the main() be missing?).

More information about the hlfs-dev mailing list