Skip to content

Commit 3c7e5df

Browse files
authored
Merge branch 'devgianlu:master' into metadata-pipe
2 parents ea02188 + e8fd412 commit 3c7e5df

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CROSS_COMPILE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ docker run --rm -u $(id -u):$(id -g) -v $PWD:/src -e GOOUTSUFFIX=-armv6 go-libre
7878
### Target Linux ARM64
7979

8080
```bash
81-
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src g-e GOOUTSUFFIX=-arm64 go-librespot-build-arm64
82-
```
81+
docker run --rm -u $(id -u):$(id -g) -v $PWD:/src -e GOOUTSUFFIX=-arm64 go-librespot-build-arm64
82+
```

Dockerfile.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ RUN if [ ${TARGET} = arm-rpi-linux-gnueabihf ]; then \
3636
# Compile dependency sources
3737
RUN cd /tmp/alsa-lib-1.2.10 && \
3838
./configure --enable-shared=yes --enable-static=no --with-pic --host=${TARGET} --prefix=/tmp/deps/${TARGET} && \
39-
make && make install
39+
make -j $(nproc) && make install
4040
RUN cd /tmp/libogg-1.3.5 && \
4141
./configure --host=${TARGET} --prefix=/tmp/deps/${TARGET} && \
42-
make && make install
42+
make -j $(nproc) && make install
4343
RUN cd /tmp/libvorbis-1.3.7 && \
4444
./configure --host=${TARGET} --prefix=/tmp/deps/${TARGET} && \
45-
make && make install
45+
make -j $(nproc) && make install
4646

4747
# Golang arguments
4848
ARG GOARCH
@@ -57,4 +57,4 @@ ENV CGO_ENABLED=1 PKG_CONFIG_PATH=/tmp/deps/${TARGET}/lib/pkgconfig/ CC=${CC} \
5757
CMD go build \
5858
-buildvcs=false \
5959
-ldflags="-X github.com/devgianlu/go-librespot.commit=${COMMIT} -X github.com/devgianlu/go-librespot.version=${VERSION}" \
60-
-o ./go-librespot${GOOUTSUFFIX} -a ./cmd/daemon
60+
-o ./go-librespot${GOOUTSUFFIX} -a ./cmd/daemon

0 commit comments

Comments
 (0)