boost для C++
This commit is contained in:
1 parent
d34d6a09d9
commit
63b3e7bec6
3 files changed
+5
-2
No files matched your search
+2
-2
@@ -9,7 +9,7 @@ PYTHON=env python3
|
||||
LIBEXT=.so
|
||||
|
||||
# get the CC and flags used to build python:
|
||||
GCC = $(shell $(GOCMD) env CC)
|
||||
GXX = $(shell $(GOCMD) env CXX)
|
||||
CFLAGS = $(shell python3-config --includes)
|
||||
LDFLAGS = -L/usr/lib64 $(BOOST_ROOT)/stage/lib/libboost_python*.a -lpthread -ldl -lutil -lm -lm
|
||||
|
||||
@@ -29,5 +29,5 @@ build:
|
||||
# build the _gorrent$(LIBEXT) library that contains the cgo and CPython wrappers
|
||||
# generated gorrent.py python wrapper imports this c-code package
|
||||
|
||||
$(GCC) gorrent.c gorrent_go.a -o _gorrent$(LIBEXT) $(CFLAGS) $(LDFLAGS) -fPIC --shared -w
|
||||
$(GXX) gorrent.c gorrent_go.a -o _gorrent$(LIBEXT) $(CFLAGS) $(LDFLAGS) -fPIC --shared -w -fpermissive
|
||||
|
||||
Reference in new issue
Block a user