diff --git a/build.sh b/build.sh index dc5cbe1..1559bbf 100644 --- a/build.sh +++ b/build.sh @@ -79,7 +79,7 @@ if ! [ -f "${gcc_tarball}" ]; then patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-Fix-issues-with-fenv.patch" # patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/0001-Revert___atomic_test_and_set_Fall_back_to_library,_not_non-atomic_code.patch" patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk.patch" - patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk2.patch" + #patch --directory="${gcc_directory}" --strip='1' --input="${workdir}/patches/pk2.patch" fi [ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build" diff --git a/patches/pk.patch b/patches/pk.patch index da84ace..8fd76e0 100644 --- a/patches/pk.patch +++ b/patches/pk.patch @@ -16,10 +16,10 @@ index 4a01cd2..148a12d 100644 #include "libatomic_i.h" +#if N == 1 -+bool __atomic_test_and_set (volatile void* a, int b) -+{ -+ return 0; -+} +extern bool __atomic_test_and_set (volatile void* a, int b) +{ + return 0; +} +#endif /* If we support the builtin, just use it. */