We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f702de commit d535c66Copy full SHA for d535c66
source-code/interfaciing-c-c++-fortran/Pybind11/Spectrum/Makefile
@@ -1,12 +1,13 @@
1
CXX = g++
2
-CXXFLAGS = -std=c++14 -g -O2 -Wall -Wextra -Wpedantic -fPIC
+CXXFLAGS = -std=c++17 -g -O2 -Wall -Wextra -Wpedantic
3
CPPFLAGS = $(shell python3 -m pybind11 --includes)
4
+LDFLAGS = -fPIC -shared
5
LDLIBS = -lm
6
7
PYBIND_SUFFIX = $(shell python3-config --extension-suffix)
8
9
bindings: spectrum.cpp
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -shared -o spectrum$(PYBIND_SUFFIX) $^
10
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o spectrum$(PYBIND_SUFFIX) $^
11
12
clean:
13
$(RM) $(wildcard *.so) $(wildcard *.o)
0 commit comments