Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
diff --git a/scripts/build.sh b/scripts/build.sh
index fa48899b6..6fd00501e 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -6,6 +6,7 @@ if [[ -z $1 ]] || [[ -z $2 ]]; then
fi
set -e
+set -x;env
BUILD_OS=$(uname -s)
BUILD_ARCH=$("$(dirname "$0")/dist/arch.sh")
@@ -28,7 +29,7 @@ elif [[ $1 == "static" ]]; then
elif [[ $1 == "debug" ]]; then
BUILD_CMD=("$GO_BIN" build -tags=debug -ldflags "-extldflags \"-Wl,-rpath -Wl,\$ORIGIN/../lib\" -s -w -X main.version=${BUILD_ID}" -o "${BUILD_BIN}-DEBUG" cmd/photoprism/photoprism.go)
else
- BUILD_CMD=("$GO_BIN" build -ldflags "-extldflags \"-Wl,-rpath -Wl,\$ORIGIN/../lib\" -s -w -X main.version=${BUILD_ID}" -o "${BUILD_BIN}" cmd/photoprism/photoprism.go)
+ BUILD_CMD=("$GO_BIN" build -ldflags "-extldflags \"-Wl,-rpath -Wl,\$ORIGIN/../lib -L${DESTDIR}/lib $(pkg-config libwebp --libs-only-L) \" -s -w -X main.version=${BUILD_ID}" -o "${BUILD_BIN}" cmd/photoprism/photoprism.go)
fi
# Build app binary.
diff --git a/scripts/dist/install-tensorflow.sh b/scripts/dist/install-tensorflow.sh
index c8b6aab12..ffef94c73 100755
--- a/scripts/dist/install-tensorflow.sh
+++ b/scripts/dist/install-tensorflow.sh
@@ -95,8 +95,8 @@ if [[ $DESTDIR == "/usr" || $DESTDIR == "/usr/local" ]]; then
echo "Running \"ldconfig\"."
ldconfig
else
- echo "Running \"ldconfig -n $DESTDIR/lib\"."
- ldconfig -n "$DESTDIR/lib"
+ echo "Running \"ldconfig -x -n $DESTDIR/lib\"."
+ ldconfig -x -n "$DESTDIR/lib"
fi
echo "Done."