diff --git a/build_json_arm32.sh b/build_json_arm32.sh new file mode 100755 index 0000000..6b83ea7 --- /dev/null +++ b/build_json_arm32.sh @@ -0,0 +1,5 @@ +git clean -xfd +# autogen.sh +# ./configure --build x86_64-pc-linux-gnu --host arm-linux-gnueabi LDFLAGS="-static -pthread" --enable-mpers=check +cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc ../json-c +make diff --git a/build_json_arm64.sh b/build_json_arm64.sh new file mode 100755 index 0000000..db1c3ee --- /dev/null +++ b/build_json_arm64.sh @@ -0,0 +1,5 @@ +git clean -xfd +# autogen.sh +# ./configure --build x86_64-pc-linux-gnu --host arm-linux-gnueabi LDFLAGS="-static -pthread" --enable-mpers=check +cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc ../json-c +make diff --git a/build_json_x86-32.sh b/build_json_x86-32.sh new file mode 100755 index 0000000..cfc4b74 --- /dev/null +++ b/build_json_x86-32.sh @@ -0,0 +1,6 @@ +git clean -xfd +autogen.sh +./configure --build x86_64-pc-linux-gnu --host arm-linux-gnueabi LDFLAGS="-static -pthread" --enable-mpers=check + +# cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc ../json-c +# make diff --git a/build_json_x86-64.sh b/build_json_x86-64.sh new file mode 100755 index 0000000..135899a --- /dev/null +++ b/build_json_x86-64.sh @@ -0,0 +1,6 @@ +git clean -xfd +# autogen.sh +# ./configure --build x86_64-pc-linux-gnu --host arm-linux-gnueabi LDFLAGS="-static -pthread" --enable-mpers=check +cmake -DBUILD_SHARED_LIBS=OFF ../json-c +make +