How can I set ccshared=-fPIC while executing ./configure?

后端 未结 9 1158
北荒
北荒 2021-02-02 10:56

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:         


        
9条回答
  •  自闭症患者
    2021-02-02 11:37

    The following worked for me when I ran into this error:

    make clean
    ./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
    

提交回复
热议问题