[PATCH] (issue172) Add patch for polarssl to permit custom build options
Wald Commits
scm-commit at wald.intevation.org
Tue Oct 28 12:22:13 CET 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1414495329 -3600
# Node ID f5225a6326225c3fc1ffba04da60602afdf48f62
# Parent db9dfd4740afdbd39b6b36f98d663eaa6506933d
(issue172) Add patch for polarssl to permit custom build options
diff -r db9dfd4740af -r f5225a632622 INSTALL
--- 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
More information about the Trustbridge-commits
mailing list