diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-10-31 17:14:53 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-10-31 17:14:53 -0400 |
commit | 6fb90f2b0c831315d52a69388231fceef8532413 (patch) | |
tree | 20908158f16b0c9d774a1489dc21524a06c7e85d /Install.txt | |
parent | dcabbd2112df647952d2ee42cae277c7431c7311 (diff) | |
download | cryptopp-git-6fb90f2b0c831315d52a69388231fceef8532413.tar.gz |
Add additional examples to Install.txt (GH #525)
Diffstat (limited to 'Install.txt')
-rw-r--r-- | Install.txt | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Install.txt b/Install.txt index 85152524..29b29889 100644 --- a/Install.txt +++ b/Install.txt @@ -33,7 +33,9 @@ In general, all you should have to do is open a terminal, and then: make test
sudo make install
-The command above builds the static library and cryptest.exe program. If you want to build the shared object, then issue:
+The command above builds the static library and cryptest.exe program. It also uses a sane set of default flags, which are usually "-DNDEBUG -g2 -O3 -fPIC".
+
+If you want to build the shared object, then issue:
make static dynamic cryptest.exe
@@ -47,20 +49,32 @@ If you would like to use a different compiler, the set CXX: export CXX=/opt/intel/bin/icpc
make
+Or:
+
+ CXX=/opt/solarisstudio12.4/bin/CC make
+
If you want to build using C++11, then:
- make CXXFLAGS="-std=c++11"
+ export CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11"
+ make
Or:
- CXXFLAGS="-std=c++11"
- make
+ CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" make
LLVM's libc++ is also supported, so you can:
- CXXFLAGS="-std=c++11 -stdlib=libc++"
+ export CXXFLAGS="-std=c++11 -stdlib=libc++"
make
+If you target 32-bit IA-32 machines (i386, i586 or i686), then the makefile forgoes -fPIC due to register pressures. You should add -fPIC yourself in this case:
+
+ CXXFLAGS="-DNDEBUG -g2 -O3 -fPIC" make
+
+You can also override a variable so that only your flags are present. That is, the makefile will not add additional flags. For example, the following build with only -std=c++11:
+
+ make CXXFLAGS="-std=c++11"
+
ALTERNATE BUILD SYSTEMS
-----------------------
|