parent
0b9c9cc324
commit
b5955cbaf9
@ -1,36 +0,0 @@
|
||||
diff -up libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h.than libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h
|
||||
--- libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h.than 2016-01-23 13:11:30.000000000 -0500
|
||||
+++ libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h 2016-03-09 10:16:36.520161395 -0500
|
||||
@@ -55,6 +55,23 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const
|
||||
* use the portable [slower] macros.
|
||||
*/
|
||||
|
||||
+#if defined(__powerpc64__)
|
||||
+#define ENDIAN_64BITWORD
|
||||
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
+#define ENDIAN_BIG
|
||||
+#else
|
||||
+#define ENDIAN_LITTLE
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__s390x__)
|
||||
+#define ENDIAN_64BITWORD
|
||||
+#define ENDIAN_BIG
|
||||
+#elif defined(__s390__)
|
||||
+#define ENDIAN_32BITWORD
|
||||
+#define ENDIAN_BIG
|
||||
+#endif
|
||||
+
|
||||
/* detect x86-32 machines somewhat */
|
||||
#if !defined(__STRICT_ANSI__) && !defined(__x86_64__) && !defined(_WIN64) && ((defined(_MSC_VER) && defined(WIN32)) || (defined(__GNUC__) && (defined(__DJGPP__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__i386__))))
|
||||
#define ENDIAN_LITTLE
|
||||
@@ -94,7 +111,7 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const
|
||||
/* this is the "32-bit at least" data type
|
||||
* Re-define it to suit your platform but it must be at least 32-bits
|
||||
*/
|
||||
-#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__))
|
||||
+#if defined(__x86_64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__))
|
||||
typedef unsigned ulong32;
|
||||
#else
|
||||
typedef unsigned long ulong32;
|
@ -0,0 +1,59 @@
|
||||
--- makefile.include.old 2017-03-27 10:38:30.918322484 +0200
|
||||
+++ makefile.include 2017-03-27 10:43:24.076216593 +0200
|
||||
@@ -21,55 +21,8 @@
|
||||
MAKE:=make
|
||||
endif
|
||||
|
||||
-
|
||||
# Compilation flags. Note the += does not write over the user's CFLAGS!
|
||||
-CFLAGS += -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE
|
||||
-
|
||||
-ifdef OLD_GCC
|
||||
-CFLAGS += -W
|
||||
-# older GCCs can't handle the "rotate with immediate" ROLc/RORc/etc macros
|
||||
-# define this to help
|
||||
-CFLAGS += -DLTC_NO_ROLC
|
||||
-else
|
||||
-CFLAGS += -Wextra
|
||||
-# additional warnings
|
||||
-CFLAGS += -Wsystem-headers -Wbad-function-cast -Wcast-align
|
||||
-CFLAGS += -Wstrict-prototypes -Wpointer-arith
|
||||
-CFLAGS += -Wdeclaration-after-statement
|
||||
-endif
|
||||
-
|
||||
-CFLAGS += -Wno-type-limits
|
||||
-
|
||||
-ifdef LTC_DEBUG
|
||||
-# compile for DEBUGGING (required for ccmalloc checking!!!)
|
||||
-ifneq (,$(strip $(LTC_DEBUG)))
|
||||
-CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG=$(LTC_DEBUG)
|
||||
-else
|
||||
-CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG
|
||||
-endif
|
||||
-else
|
||||
-
|
||||
-ifdef LTC_SMALL
|
||||
-# optimize for SIZE
|
||||
-CFLAGS += -Os -DLTC_SMALL_CODE
|
||||
-else
|
||||
-
|
||||
-ifndef IGNORE_SPEED
|
||||
-# optimize for SPEED
|
||||
-CFLAGS += -O3 -funroll-loops
|
||||
-
|
||||
-# add -fomit-frame-pointer. hinders debugging!
|
||||
-CFLAGS += -fomit-frame-pointer
|
||||
-endif
|
||||
-
|
||||
-endif # COMPILE_SMALL
|
||||
-endif # COMPILE_DEBUG
|
||||
-
|
||||
-
|
||||
-ifneq ($(findstring clang,$(CC)),)
|
||||
-CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare
|
||||
-endif
|
||||
-
|
||||
+CFLAGS += -I./testprof/ -I./src/headers/ -DLTC_SOURCE
|
||||
|
||||
HASH=hashsum
|
||||
CRYPT=encrypt
|
Loading…
Reference in new issue