Normalize build scripts and fix Docker Qt dependencies for x86_64
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
export LC_ALL=C
|
||||
set -euo pipefail
|
||||
|
||||
IMAGE_NAME="palladium-builder:linux-x86_64-ubuntu20.04"
|
||||
@@ -28,6 +29,12 @@ docker run --rm --platform=linux/amd64 \
|
||||
set -euo pipefail
|
||||
cd /src
|
||||
|
||||
echo '[*] cleaning tree (avoid host-built artifacts)...'
|
||||
[[ -f Makefile ]] && make distclean || true
|
||||
rm -rf univalue/.libs
|
||||
rm -rf depends/${HOST_TRIPLE}
|
||||
rm -f config.cache
|
||||
|
||||
echo '[*] depends...'
|
||||
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
||||
|
||||
@@ -35,7 +42,11 @@ docker run --rm --platform=linux/amd64 \
|
||||
[[ -x ./autogen.sh ]] && ./autogen.sh
|
||||
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
||||
|
||||
# Ensure we use Qt tools (moc/uic/rcc) from depends, not system Qt
|
||||
export PATH=\$PWD/depends/${HOST_TRIPLE}/bin:\$PATH
|
||||
|
||||
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
||||
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
|
||||
--enable-glibc-back-compat \
|
||||
--enable-reduce-exports \
|
||||
LDFLAGS='-static-libstdc++'
|
||||
@@ -55,4 +66,4 @@ docker run --rm --platform=linux/amd64 \
|
||||
echo '[*] build COMPLETED (everything in container) → /out'
|
||||
"
|
||||
|
||||
echo "[*] Binaries available in: ${OUT_DIR}"
|
||||
echo "[*] Binaries available in: ${OUT_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user