I am trying to build Python 2.6 for QGIS on RHEL 5. During the making of QGIS I get the following error:
Linking CXX shared library libqgispython.so /usr/bin/ld:
The following worked for me when I ran into this error:
make clean ./configure CFLAGS=-fPIC CXXFLAGS=-fPIC