summaryrefslogtreecommitdiffstats
path: root/packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch
diff options
context:
space:
mode:
authorcoast <coasteen@proton.me>2026-10-12 14:41:07 +0330
committercoast <coasteen@proton.me>2026-10-12 14:41:07 +0330
commit25922912c7e37f3bc3000e71b647e77677d8f2c5 (patch)
tree8383c5569a668613eee384ee31ea8cddc2113ee5 /packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch
downloadexherbo-overlay-25922912c7e37f3bc3000e71b647e77677d8f2c5.tar.gz
exherbo-overlay-25922912c7e37f3bc3000e71b647e77677d8f2c5.tar.bz2
exherbo-overlay-25922912c7e37f3bc3000e71b647e77677d8f2c5.tar.xz
exherbo-overlay-25922912c7e37f3bc3000e71b647e77677d8f2c5.tar.zst
Diffstat (limited to 'packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch')
-rw-r--r--packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch b/packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch
new file mode 100644
index 0000000..f28b1ec
--- /dev/null
+++ b/packages/app-crypt/veracrypt/files/veracrypt-1.26.29-fix-nosse2.patch
@@ -0,0 +1,31 @@
+Fix building with NOSSE2.
+The change in Tcdefs.h is not required for x86, but for some reason it is
+necessary for x86_64.
+
+https://github.com/veracrypt/VeraCrypt/pull/1891
+
+--- a/Common/Tcdefs.h
++++ b/Common/Tcdefs.h
+@@ -52,9 +52,7 @@ extern unsigned short _rotl16(unsigned short value, unsigned char shift);
+
+ #endif // defined(_UEFI)
+
+-#ifdef TC_WINDOWS_BOOT
+ #include <stddef.h>
+-#endif
+
+ #define TC_APP_NAME "VeraCrypt"
+
+--- a/Makefile
++++ b/Makefile
+@@ -289,8 +289,8 @@ ifeq "$(shell uname -s)" "Linux"
+ endif
+
+ ifeq "$(origin NOSSE2)" "command line"
+- CFLAGS += -mno-sse2
+- CXXFLAGS += -mno-sse2
++ CFLAGS += -mno-sse2 -DCRYPTOPP_DISABLE_AESNI -DCRYPTOPP_DISABLE_SHANI
++ CXXFLAGS += -mno-sse2 -DCRYPTOPP_DISABLE_AESNI -DCRYPTOPP_DISABLE_SHANI
+ WXCONFIG_CFLAGS += -mno-sse2
+ WXCONFIG_CXXFLAGS += -mno-sse2
+ endif