зеркало из https://github.com/mozilla/DeepSpeech.git
Merge pull request #2313 from lissyx/static-libsox
Statically link libsox
This commit is contained in:
Коммит
d5544b4a15
|
@ -31,7 +31,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
liblzma-dev \
|
||||
locales \
|
||||
pkg-config \
|
||||
libpng-dev \
|
||||
libsox-dev \
|
||||
libmagic-dev \
|
||||
libgsm1-dev \
|
||||
libltdl-dev \
|
||||
openjdk-8-jdk \
|
||||
bash-completion \
|
||||
g++ \
|
||||
|
|
|
@ -22,7 +22,12 @@ CFLAGS :=
|
|||
CXXFLAGS :=
|
||||
LDFLAGS :=
|
||||
SOX_CFLAGS := `pkg-config --cflags sox`
|
||||
ifeq ($(OS),Linux)
|
||||
SOX_CFLAGS += -fopenmp
|
||||
SOX_LDFLAGS := -Wl,-Bstatic `pkg-config --static --libs sox` -lgsm `pkg-config --static --libs libpng | cut -d' ' -f1` -lz -lmagic -lltdl -Wl,-Bdynamic -ldl
|
||||
else # OS == Linux
|
||||
SOX_LDFLAGS := `pkg-config --libs sox`
|
||||
endif # OS others
|
||||
PYTHON_PACKAGES := numpy${NUMPY_BUILD_VERSION}
|
||||
ifeq ($(OS),Linux)
|
||||
PYTHON_PLATFORM_NAME := --plat-name manylinux1_x86_64
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
python:
|
||||
packages_trusty:
|
||||
apt: 'make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev'
|
||||
apt: 'make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libpng-dev libsox-dev libmagic-dev libgsm1-dev libltdl-dev'
|
||||
packages_stretch:
|
||||
apt: 'make build-essential libssl1.0-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev'
|
||||
packages_buster:
|
||||
|
|
Загрузка…
Ссылка в новой задаче