Skip to content

Commit

Permalink
Cross-compile for mips64 and i386
Browse files Browse the repository at this point in the history
  • Loading branch information
luben committed Oct 31, 2023
1 parent d5bc6a0 commit 69ec21b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions make_so.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ compile () {
}

compile amd64 linux
compile i386 linux "gcc -march=i586 -static-libgcc"
#compile i386 linux "gcc -march=i586 -static-libgcc"
compile ppc64 linux
compile ppc64le linux
compile aarch64 linux
compile mips64 linux
#compile mips64 linux
compile loongarch64 linux
compile amd64 freebsd "cc"
compile i386 freebsd "cc -m32 -march=i486 -mfancy-math-387"
1 change: 1 addition & 0 deletions make_so_cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ compile() {

mkdir -p $INSTALL
cp $BUILD_DIR/libzstd-jni-$VERSION.so $INSTALL
chmod -x $INSTALL libzstd-jni-$VERSION.so
}

compile riscv64 "riscv64-linux-gnu-gcc"
Expand Down
4 changes: 3 additions & 1 deletion make_so_cross_buster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ compile() {

mkdir -p $INSTALL
rsync buster:$BUILD_DIR/libzstd-jni-$VERSION.so $INSTALL
chmod -x $INSTALL/libzstd-jni-$VERSION.so
}

compile arm arm-linux-gnueabihf-gcc-8
compile s390x "s390x-linux-gnu-gcc-8 -march=z196"

compile mips64 mips64-linux-gnuabi64-gcc-8
compile i386 "i686-linux-gnu-gcc-8 -march=i586"

0 comments on commit 69ec21b

Please sign in to comment.