mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
jinx: fix building on non-x86_64 hosts
Allows building Astral on non-x86_64 hosts (e.g. aarch64).
This commit is contained in:
+4
-1
@@ -14,7 +14,10 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR="${dest_dir}"
|
||||
# ncurses hardcodes a bare `install -s` (INSTALL_OPT_S), which would strip the
|
||||
# x86_64 target binaries with the host's native strip and fail on non-x86_64
|
||||
# hosts. Point install at the cross strip so the binaries are still stripped.
|
||||
make install DESTDIR="${dest_dir}" INSTALL_PROG='$(INSTALL) -s --strip-program=x86_64-astral-strip'
|
||||
|
||||
echo "INPUT(-lncursesw)" > ${dest_dir}${prefix}/lib/libncurses.so
|
||||
echo "INPUT(-ltinfow)" > ${dest_dir}${prefix}/lib/libtinfo.so
|
||||
|
||||
+3
-1
@@ -29,7 +29,9 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
# vim strips the installed binary with a bare `$(STRIP)`; use the cross strip
|
||||
# so it works when building for x86_64 on a non-x86_64 host.
|
||||
make install DESTDIR=${dest_dir} STRIP=x86_64-astral-strip
|
||||
|
||||
mkdir -p ${dest_dir}/bin
|
||||
pushd ${dest_dir}/bin
|
||||
|
||||
Reference in New Issue
Block a user