This is a test version of Biostars. For the public version, visit https://www.biostars.org.
error unrecognized command line option fPIC

My error information:

Compilation error caused by mismatched makefile environment g++: error: unrecognized command line option ‘-fno-plt

I was wondering how to find the makefile and revise it.

CXXFLAGS = -I include  -std=c++11 -O3 -I/home/GZKP/.conda/envs/py36/include/python3.6m
LDFLAGS = $(shell python3-config --ldflags)

DEPS = $(shell find include -xtype f)
CXX_SOURCES = pse.cpp

LIB_SO = pse.so

$(LIB_SO): $(CXX_SOURCES) $(DEPS)
    $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(CXX_SOURCES) --shared -fPIC

clean:
    rm -rf $(LIB_SO)
compilation error mismatched makefile environment

0 answers

No answers yet.

Log in to answer this question.