Mercurial > trustbridge
comparison INSTALL @ 1266:a548dd9a5dbe
Fix c++ build with CLANG
The c++ include directories were not picked up automatically
and had to be added manually.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 26 Sep 2014 18:44:41 +0200 |
parents | b18f08034c24 |
children | d9ecf3a83620 |
comparison
equal
deleted
inserted
replaced
1265:b18f08034c24 | 1266:a548dd9a5dbe |
---|---|
107 cd build-linux | 107 cd build-linux |
108 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX | 108 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX |
109 | 109 |
110 CLANG | 110 CLANG |
111 ===== | 111 ===== |
112 Alternatively you can build trustbridge with CLANG: | 112 Alternatively you can build trustbridge with CLANG. This is a bit of a hack |
113 and does not use all the hardening flags. Building with CLANG is _NOT_ recommended | |
114 but it can be useful for analysis of the code. | |
115 | |
116 As root install the required packages an perform an evil hack that fixes the c++ | |
117 build with clang on ubuntu: | |
118 | |
119 apt-get install clang llvm | |
120 ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19 /usr/lib/x86_64-linux-gnu/libstdc++.so | |
121 | |
122 Now you can build trustbridge as user: | |
113 | 123 |
114 mkdir build-clang | 124 mkdir build-clang |
115 cd build-clang | 125 cd build-clang |
116 CC=/usr/bin/clang \ | 126 CC=/usr/bin/clang \ |
117 CXX=/usr/bin/clang++ \ | 127 CXX=/usr/bin/clang++ \ |
118 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \ | 128 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \ |
119 -DUSE_CLANG=TRUE | 129 -DUSE_CLANG=TRUE \ |
130 -DCMAKE_VERBOSE_MAKEFILE=TRUE | |
120 | 131 |
121 I386 | 132 I386 |
122 ==== | 133 ==== |
123 Install dependencies (list might be incomplete) | 134 Install dependencies (list might be incomplete) |
124 | 135 |