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

后端 未结 9 753
北荒
北荒 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:40

    1. Run ./configure --help, possibly piping to grep PIC, to see if there's an option to enable this
    2. Try setting the environment variable before running configure, e.g. CCSHARED="-fPIC" ./configure (as a single command, assuming bash)

    If neither of those work, you need to read the configure code and understand the conditions it tests for better.

提交回复
热议问题