Hi everybody! While debugging a xorg modules loading failure I found that the test for -fPIC support wrongly judges that the compiler does not support PIC code generation whenever CFLAGS contains "-v" or "--verbose", see xorg bug 41208. <https://bugs.freedesktop.org/show_bug.cgi?id=41208>
The reason is obvious - the autoconf "-fPIC" test assumes that any additional output during the test compilation is caused by a compiler warning, but in verbose mode that output it is caused by the compile process. The inclusion of "-v" into CFLAGS for an xorg build causes compilation without -fPIC, hence no position independent code is generated, hence lazy symbol resolution does not work, hence dlopen() calls used to load xorg modules fail. btw: Some other standard tests share the same broken mechanism. I think this needs to be fixed as probably almost nobody knows or suspects that enabling verbose compiler output has the side effect of disabling generation of position independent code. Maybe the easiest way would be to strip "-v" and "--verbose" from CFLAGS for those tests. autoconf version used: 2.68 (this problems seems to be old, I found related discussions dating back to at least 2007) cu, Knut