File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments