qt-creator: Fix hardcoded paths in build.sh

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-03-18 21:41:23 +09:00 committed by Yaksh Bariya
parent a61b2858f0
commit ceddcf42e8
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -30,14 +30,14 @@ termux_step_post_configure() {
# clangbackend's Makefile lacks -lc++_shared to link against libc++ on x86_64
sed -i -e 's|^LIBS = $(SUBLIBS)|LIBS = $(SUBLIBS) -lc++_shared|' \
-e 's|-Wl,-rpath,/home/builder/.termux-build/_cache/android-r23b-api-24-v1/lib64||g' \
-e 's|-L/home/builder/.termux-build/_cache/android-r23b-api-24-v1/lib64||g' \
-e 's|-Wl,-rpath,'${TERMUX_COMMON_CACHEDIR//./\\.}'/android-r[0-9][^/]*/lib64||g' \
-e 's|-L'${TERMUX_COMMON_CACHEDIR//./\\.}'/android-r[0-9][^/]*/lib64||g' \
${TERMUX_PKG_SRCDIR}/src/tools/clangbackend/Makefile
# make sure clangtools link against libc++_shared on x86_64
sed -i -e 's|^LIBS = $(SUBLIBS)|LIBS = $(SUBLIBS) -lc++_shared|' \
-e 's|-Wl,-rpath,/home/builder/.termux-build/_cache/android-r23b-api-24-v1/lib64||g' \
-e 's|-L/home/builder/.termux-build/_cache/android-r23b-api-24-v1/lib64||g' \
-e 's|-Wl,-rpath,'${TERMUX_COMMON_CACHEDIR//./\\.}'/android-r[0-9][^/]*/lib64||g' \
-e 's|-L'${TERMUX_COMMON_CACHEDIR//./\\.}'/android-r[0-9][^/]*/lib64||g' \
${TERMUX_PKG_SRCDIR}/src/plugins/clangtools/Makefile
# required by make install, otherwise it installs to '/'