Entering edit mode
3.2 years ago
Ashley
▴
90
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)