Mercurial > trustbridge
comparison INSTALL @ 1346:f5225a632622
(issue172) Add patch for polarssl to permit custom build options
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 28 Oct 2014 12:22:09 +0100 |
parents | dab626e44347 |
children | 3d6faded03dd |
comparison
equal
deleted
inserted
replaced
1345:db9dfd4740af | 1346:f5225a632622 |
---|---|
62 sha256sum polarssl-1.3.9-gpl.tgz | 62 sha256sum polarssl-1.3.9-gpl.tgz |
63 d3605afc28ed4b7d1d9e3142d72e42855e4a23c07c951bbb0299556b02d36755 polarssl-1.3.9-gpl.tgz | 63 d3605afc28ed4b7d1d9e3142d72e42855e4a23c07c951bbb0299556b02d36755 polarssl-1.3.9-gpl.tgz |
64 | 64 |
65 tar -xf polarssl-1.3.9-gpl.tgz | 65 tar -xf polarssl-1.3.9-gpl.tgz |
66 cd polarssl-1.3.9 | 66 cd polarssl-1.3.9 |
67 # In 1.3.9 polarssl removed custom C flag inclusion. | |
68 # we need this for -fpic | |
69 patch -p0 << EOF | |
70 --- CMakeLists.txt 2014-10-28 12:13:53.566828092 +0100 | |
71 +++ CMakeLists.txt.orig 2014-10-28 12:13:48.202827991 +0100 | |
72 @@ -4,7 +4,7 @@ | |
73 string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "\${CMAKE_C_COMPILER_ID}") | |
74 | |
75 if(CMAKE_COMPILER_IS_GNUCC) | |
76 - set(CMAKE_C_FLAGS "-Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings") | |
77 + set(CMAKE_C_FLAGS "\${CMAKE_C_FLAGS} -Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings") | |
78 set(CMAKE_C_FLAGS_RELEASE "-O2") | |
79 set(CMAKE_C_FLAGS_DEBUG "-g3 -O0") | |
80 set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 --coverage") | |
81 EOF | |
82 | |
67 mkdir build | 83 mkdir build |
68 cd build | 84 cd build |
69 cmake .. -DCMAKE_C_FLAGS=-fpic -DCMAKE_INSTALL_PREFIX=$YOURPREFIX | 85 cmake .. -DCMAKE_C_FLAGS=-fpic -DCMAKE_INSTALL_PREFIX=$YOURPREFIX |
70 make && make test && make install | 86 make && make test && make install |
71 | 87 |