Mercurial > trustbridge
changeset 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 | db9dfd4740af |
children | e3aeaef007f6 |
files | INSTALL |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/INSTALL Tue Oct 28 12:01:37 2014 +0100 +++ b/INSTALL Tue Oct 28 12:22:09 2014 +0100 @@ -64,6 +64,22 @@ tar -xf polarssl-1.3.9-gpl.tgz cd polarssl-1.3.9 + # In 1.3.9 polarssl removed custom C flag inclusion. + # we need this for -fpic + patch -p0 << EOF +--- CMakeLists.txt 2014-10-28 12:13:53.566828092 +0100 ++++ CMakeLists.txt.orig 2014-10-28 12:13:48.202827991 +0100 +@@ -4,7 +4,7 @@ + string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "\${CMAKE_C_COMPILER_ID}") + + if(CMAKE_COMPILER_IS_GNUCC) +- set(CMAKE_C_FLAGS "-Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings") ++ set(CMAKE_C_FLAGS "\${CMAKE_C_FLAGS} -Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings") + set(CMAKE_C_FLAGS_RELEASE "-O2") + set(CMAKE_C_FLAGS_DEBUG "-g3 -O0") + set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 --coverage") +EOF + mkdir build cd build cmake .. -DCMAKE_C_FLAGS=-fpic -DCMAKE_INSTALL_PREFIX=$YOURPREFIX