Link .so
This commit is contained in:
parent
2ce67a7a09
commit
31ed7875bf
1
build.sh
1
build.sh
@ -4,4 +4,5 @@ go build -buildmode c-shared -ldflags="-w -s" -trimpath -v -o "go_p2fa.so"
|
||||
rm -rf ../c/libs/go_p2fa.h
|
||||
cp go_p2fa.h ../c/libs/go_p2fa.h
|
||||
cd ../c
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./libs
|
||||
make -j1
|
||||
|
@ -27,6 +27,7 @@ else ifeq ($(USELIB_RPI), USE_LGPIO_LIB)
|
||||
else ifeq ($(USELIB_RPI), USE_DEV_LIB)
|
||||
LIB_RPI += -lgpiod -lm
|
||||
endif
|
||||
LIB_RPI += -L./libs -lgo_p2fa
|
||||
DEBUG_RPI = -D $(USELIB_RPI) -D RPI
|
||||
|
||||
USELIB_JETSONI = USE_DEV_LIB
|
||||
|
Loading…
Reference in New Issue
Block a user