mirror of
https://github.com/izzy2lost/termux-packages.git
synced 2026-07-05 15:18:45 -07:00
scripts: start_build: create libpthread and librt as well
Their functionality is included in libc, but some packages anyways searches for libpthread.so and librt.so. Provide these files so that such configure steps succeed.
This commit is contained in:
@@ -104,10 +104,13 @@ termux_step_start_build() {
|
||||
chmod u+x "$TERMUX_ELF_CLEANER"
|
||||
fi
|
||||
|
||||
# On Android 7, libutil functionality is provided by libc.
|
||||
# But many programs still may search for libutil.
|
||||
if [ ! -f $TERMUX_PREFIX/lib/libutil.so ]; then
|
||||
mkdir -p "$TERMUX_PREFIX/lib"
|
||||
echo 'INPUT(-lc)' > $TERMUX_PREFIX/lib/libutil.so
|
||||
fi
|
||||
# Some packages search for libutil, libpthread and librt even
|
||||
# though this functionality is provided by libc. Provide
|
||||
# library stubs so that such configure checks succeed.
|
||||
mkdir -p "$TERMUX_PREFIX/lib"
|
||||
for lib in libutil.so libpthread.so librt.so; do
|
||||
if [ ! -f $TERMUX_PREFIX/lib/$lib ]; then
|
||||
echo 'INPUT(-lc)' > $TERMUX_PREFIX/lib/$lib
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user