error unrecognized command line option fPIC
0
1
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)
Compilation error mismatched makefile environment • 963 views
ADD COMMENT

Login before adding your answer.

Traffic: 2662 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6