Skip to content

Commit

Permalink
Merge pull request #4 from M0Rf30/fix/libucd
Browse files Browse the repository at this point in the history
fix: add libucd at linking time
  • Loading branch information
mudler committed Nov 28, 2023
2 parents 7fe0526 + cd884a4 commit 5a4c9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BUILD_TYPE?=
# keep standard at C11 and C++11
CFLAGS = -I. -I./piper/src/cpp -I./piper/build/fi/include -I./piper/build/pi/include -I./piper/build/si/include -O3 -DNDEBUG -std=c11 -fPIC
CXXFLAGS = -I. -I./piper/src/cpp -I./piper/build/fi/include -I./piper/build/pi/include -I./piper/build/si/include -O3 -DNDEBUG -std=c++17 -fPIC
LDFLAGS = -L./piper/build/fi/lib -L./piper/build/pi/lib -L./piper/build/si/lib -lfmt -lspdlog
LDFLAGS = -L./piper/build/fi/lib -L./piper/build/pi/lib -L./piper/build/si/lib -lfmt -lspdlog -lucd

# warnings
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function
Expand Down Expand Up @@ -38,4 +38,4 @@ clean:
rm -rf example/main

docker-run:
docker build -t piper . && docker run -v $(abspath ./):/build/go -ti --rm piper
docker build -t piper . && docker run -v $(abspath ./):/build/go -ti --rm piper
2 changes: 1 addition & 1 deletion piper.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package piper

// #cgo CXXFLAGS: -I${SRCDIR}/piper/src/cpp/ -std=c++17
// #cgo LDFLAGS: -lpiper_binding -lspdlog -lonnxruntime -lespeak-ng -lpiper_phonemize
// #cgo LDFLAGS: -lpiper_binding -lspdlog -lonnxruntime -lespeak-ng -lpiper_phonemize -lucd
// #include <stdlib.h>
// #include <gopiper.h>
import "C"
Expand Down

0 comments on commit 5a4c9e2

Please sign in to comment.