Skip to content

Commit 1dd68b2

Browse files
committed
fixed raspi build
1 parent 593a91d commit 1dd68b2

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

platforms/linux/aarch64/external.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,16 @@ if [ "${FLITE_EXPECTED_SHA}" != "${FLITE_FOUND_SHA}" ]; then
9999
./configure \
100100
--prefix="$(pwd)/install" \
101101
CFLAGS="-fPIC -O2"
102-
make -j${NUM_PROCS}
103-
make install
102+
# The full upstream "make" also enters Flite's CLI/tool targets. On a clean
103+
# Linux build that can fail in main/ because flite_voice_list.c is treated as
104+
# an unconditional all-target prerequisite without a standalone build rule.
105+
# We only need headers and static libraries for ppuc, so build the library
106+
# directories directly and stage them ourselves.
107+
make -j${NUM_PROCS} -C src
108+
make -j${NUM_PROCS} -C lang
109+
mkdir -p install/include install/lib
110+
cp -r include/* install/include/
111+
find build -path '*/lib/libflite*.a' -exec cp {} install/lib/ \;
104112
cd ..
105113

106114
echo "$FLITE_EXPECTED_SHA" > cache.txt

platforms/macos/arm64/external.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ if [ "${FLITE_EXPECTED_SHA}" != "${FLITE_FOUND_SHA}" ]; then
101101
./configure \
102102
--prefix="$(pwd)/install" \
103103
CFLAGS="-fPIC -O2"
104-
make -j${NUM_PROCS}
105-
make install
104+
# We only need headers and static libraries for ppuc. Avoid Flite's CLI
105+
# tool build path and stage the required artifacts ourselves.
106+
make -j${NUM_PROCS} -C src
107+
make -j${NUM_PROCS} -C lang
108+
mkdir -p install/include install/lib
109+
cp -r include/* install/include/
110+
find build -path '*/lib/libflite*.a' -exec cp {} install/lib/ \;
106111
cd ..
107112

108113
echo "$FLITE_EXPECTED_SHA" > cache.txt

0 commit comments

Comments
 (0)