boost для C++

This commit is contained in:
roman committed 2022-07-27 10:49:23 +03:00
1 parent d34d6a09d9
commit 63b3e7bec6
3 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -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