Commit Graph

70 Commits (fcee76594c3dcb74da0cc3dbfed4ed62ce4fd9b4)

Author SHA1 Message Date
Jeffrey Walton ef28f46691
Fix CMakeList.txt under Solaris
We needed to add GREP_CMD back and use grep from /usr/bin/xpg4 for Posix xompliant grep.
2017-08-29 07:33:25 -04:00
Jeffrey Walton 7e7de550e9
Fix broken CMakeList.txt under MinGW (again) (Issue 476)
Sorry about that Anonimal (x2)
2017-08-28 18:51:41 -04:00
Jeffrey Walton 238154966c
Fix broken CMakeList.txt under MinGW (again) (Issue 476)
Sorry about that Anonimal
2017-08-28 18:15:32 -04:00
Jeffrey Walton 2d5ed51ca9
Add Mapfile for CMake on Solaris (Issue 380) 2017-08-27 05:47:38 -04:00
Jeffrey Walton 67a24ec75a
Fix output artifact name under Cygwin (GH #466) 2017-08-26 22:34:10 -04:00
Jeffrey Walton 33d20af445
Fix CMake compiler feature misdetection on under SunCC (GH #472)
Take 2
2017-08-26 20:53:35 -04:00
Jeffrey Walton 052c06b2ea Revert "Fix CMake compiler feature misdetection on under SunCC (GH #472)"
This reverts commit 64def346cd. It broke AppVeyor and Travis builds (it tested good locally on Intel, Aarch and Solaris i86). CMake is so fucked up. I regret the day we added it to the project.
2017-08-26 18:47:04 -04:00
Jeffrey Walton 64def346cd
Fix CMake compiler feature misdetection on under SunCC (GH #472) 2017-08-26 17:18:26 -04:00
Jeffrey Walton 62c2ef2073
Fix if statement (GH# 380, Commit efcf7fa59c) 2017-08-26 09:59:45 -04:00
Jeffrey Walton efcf7fa59c
Add SunCC and Solaris to CMakeFile.txt (GH# 380) 2017-08-26 09:55:06 -04:00
Jeffrey Walton 19cabcf15d
Fold arguments to DumpMachine and use egrep (GH #466) 2017-08-26 05:16:22 -04:00
0x914409F1 a6f24d663e CMake: create DumpMachine function for machine targeting (#471)
Also fixes/resolves MinGW build (Issue 466)
2017-08-26 05:07:21 -04:00
Jeffrey Walton 77e9d8c2db
Try fix CMake on MinGW (Issue 466)
We don't know if this is going to fix the issue because we don't have a MinGW platofrm for testing. However, from VRE's answer on Stack Overflow (and the chronic CMake problems with execute_process), we believe this may be the fix.
The fix tested OK on WIndows, Linux, OS X and Cygwin. At worse, it won't do any harm
2017-08-25 10:33:48 -04:00
Jeffrey Walton b57f7f0ae0 Rollup CMake fixes for OpenBSD, MinGW (Issues 380, 466-468, PR #469)
Rollup CMake fixes for OpenBSD (Issues 467-468)
Rollup CMake fixes for MinGW (Issues 466)
Add CRYPTOPP_ENABLE_ARCH (Issue 380)
2017-08-24 07:26:14 -04:00
Jeffrey Walton b3cacd8287
Fix 32-bit ARM NEON detection
BeagleBone's, RPI-3's, etc
2017-08-23 19:35:45 -04:00
Jeffrey Walton 9c9e69119f Remove -march=native as default in Makefile and CMake (PR #465)
Remove -march=native as default in Makefile and CMake (PR #465)
2017-08-23 16:13:20 -04:00
Jeffrey Walton 82accdc13b
Sort source list (Pull Request 426) 2017-05-19 20:12:29 -04:00
Anton Gorev 7eeab3d0bf Added -xmemalign=4i compiler option for Sparc's. 2017-04-27 14:15:12 -05:00
Jeffrey Walton 422600c5b8
Update scripts for testing 2017-04-23 07:38:25 -04:00
Jeffrey Walton 89176e51cd
Add safety for SSSE4.1 and SSE4.2 intructions
They are giving ARIA and BLAKE2 trouble. It looks like SSE4  support appeared in the GCC compiler around 4.1 or 4.2. It looks like SHA support appeared in the GNU assembler around 2.18
2017-04-23 06:37:03 -04:00
Jeffrey Walton 7562e38ad6
Add safety for SHA intructions
It looks like SHA support appeared in the GCC compiler around 4.8 or 4.9. It looks like SHA support appeared in the GNU assembler around 2.23
2017-04-22 19:46:13 -04:00
Jeffrey Walton c25edcaff3
Add potential workaround for Solaris SIGBUS 2017-04-22 00:05:55 -04:00
Jeffrey Walton cede0f3fb1
Whitespace 2017-04-18 02:57:38 -04:00
Jeffrey Walton 0f7aba8b4c Merge pull request #398 from anonimal/cmake
Build: apply patch for GNU assembler errors to CMake
2017-04-14 06:27:56 -04:00
Jeffrey Walton bf92cb0039
Split regtest.cpp into regtest{1|2|3}.cpp
regtest.cpp is where ciphers register by name. The library has added a number of ciphers over the last couple of years and the source file has experienced bloat. Most of the ARM and MIPS test borads were suffering Out of Memory (OOM) kills as the compiler processed the source fille and the included header files.
This won't stop the OOM kills, but it will help the situation. An early BeagleBoard with 512 MB of RAM is still going to have trouble, but it can be worked around by building with 1 make job as opposed to 2 or 4.
2017-04-13 21:45:21 -04:00
anonimal a9f2518a2c
Build: apply patch for GNU assembler errors to CMake
References weidai11/cryptopp#395
2017-03-29 07:01:04 +00:00
Jeffrey Walton d865cf9e62
Fix OpenBSD 6.0 compile with GCC 4.9 (Issue 395)
This check-in also enables the 64-bit RDRAND routines for X32. The changes were with held until they could be tested. The testing occurred with Issue 395
2017-03-22 17:26:25 -04:00
Jeffrey Walton 4bcaabbe26
Updated RDRAND and RDSEED under NASM
Port rdrand.S to Cygwin and OS X
Add DISABLE_NATIVE_ARCH to CmakefileList and GNUmakefile. It supresses the addition of -march=native. DISABLE_NATIVE_ARCH replaces DISABLE_CXXFLAGS_OPTIMIZATIONS in CmakefileList (the latter is now deprecated).
2017-03-13 15:57:47 -04:00
Heinrich Janzing 3c77873b0e CMake: allow disabling the intermediate objects target (cryptopp-object).
Targets with only object inputs do not work correctly with some
generators (like Xcode, see issue #355). Defining these directly in
terms of the source code files (rather than a reused set of object
files) allows correct builds in such cases. This can now be controlled
through a new option USE_INTERMEDIATE_OBJECTS_TARGET which defaults to
ON.
2017-01-05 09:19:19 +01:00
klemens 5a5c633073 spelling fixes 2016-12-27 18:34:57 +01:00
Jeffrey Walton 26db40567d
Add Integer Bitops tests (Issue 344) 2016-12-06 20:56:57 -05:00
Jeffrey Walton 82009ecf41
Increment version to 5.7 due to ABI break *Issue 337)
We still need to supply a patch for those maintaining 5.6.x
2016-12-01 18:10:56 -05:00
Alon Bar-Lev db50b93766 build: add DISABLE_CXXFLAGS_OPTIMIZATIONS option
handy when packaging should control optimization without build system
masking. Especially handy when building to common architecture.

no change of behavior if DISABLE_CXXFLAGS_OPTIMIZATIONS is unset.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2016-10-21 23:49:06 +03:00
Jeffrey Walton 4d562aaac7
Post-release version increment 2016-10-11 14:37:03 -04:00
Florian 398e49d5ed Fixes #276 2016-09-27 21:44:04 +02:00
Florian c8a5a2edd3 Fix Cmake (Issue 273) 2016-09-27 21:06:01 +02:00
Jeffrey Walton df40b6224a Restore CMAKE_VERBOSE_MAKEFILE to its original state 2016-09-15 12:04:49 -04:00
Jeffrey Walton 34c1837647 Use SET(CMAKE_POSITION_INDEPENDENT_CODE 1) 2016-09-15 05:16:01 -04:00
Jeffrey Walton 722afc4733 Improve Cmake cross-ompile support.
Add CRYPTOPP_CROSS_COMPILE variable. Guard host uname calls on CROSS_COMPILE. Set CMAKE_CXX_LINK_FLAGS to CMAKE_CXX_FLAGS. Change to SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} <option>") pattern.
2016-09-15 02:20:15 -04:00
Jeffrey Walton 299288b2e7 Add Solaris SunCC and GCC specific configuration options 2016-09-14 15:15:42 -04:00
Jeffrey Walton 4c5017428b Add machine and system detection using 'uname' for Linux and Unix 2016-09-14 13:57:53 -04:00
Jeffrey Walton ad47c0cce8 Add integger.cpp as the thrird object file in the list of object files
This should have been performed at Commit 7f958575ea
2016-09-14 12:03:27 -04:00
Jeffrey Walton c70f01d7b3 Relocate first PIC code to just after Windows options. Remove second PIC code based on SIZEOF_POINTER since it only managed to set for x86_64 2016-09-14 06:33:34 -04:00
Jeffrey Walton 1204d3dfcc Add -fPIC for builds except for 32-bit x86 and Windows 2016-09-14 01:15:18 -04:00
Jeffrey Walton 9280850b26 Enable Cmake's VERBOSE=1 by default.
Cmake's choice of default options are awful. No wonder they hide them by default
2016-09-13 23:54:16 -04:00
Jeffrey Walton c8388746b9 Fix build under Sun Studio 2016-09-13 12:51:17 -04:00
Jeffrey Walton 84db27c8f6 Post-release version increment for CMake 2016-09-11 20:40:09 -04:00
Jeffrey Walton b779fbc943 Change Crypto++ version number to 5.6.4 2016-09-11 04:00:11 -04:00
Alexander Shishenko a4e4e48127 Fixed install path for Windows in CMake (for example, for use with MinGW/MSYS environment) 2016-08-07 15:54:36 +03:00
Alexander Shishenko 2bb736576e
CMake cryptest binary is now named "cryptest.exe" on all platforms. 2016-06-21 16:19:15 +03:00