Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/INSTALL Fri Sep 26 18:01:35 2014 +0200 +++ b/INSTALL Fri Sep 26 18:44:41 2014 +0200 @@ -109,14 +109,25 @@ CLANG ===== -Alternatively you can build trustbridge with CLANG: +Alternatively you can build trustbridge with CLANG. This is a bit of a hack +and does not use all the hardening flags. Building with CLANG is _NOT_ recommended +but it can be useful for analysis of the code. + +As root install the required packages an perform an evil hack that fixes the c++ +build with clang on ubuntu: + + apt-get install clang llvm + ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19 /usr/lib/x86_64-linux-gnu/libstdc++.so + +Now you can build trustbridge as user: mkdir build-clang cd build-clang CC=/usr/bin/clang \ CXX=/usr/bin/clang++ \ cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \ - -DUSE_CLANG=TRUE + -DUSE_CLANG=TRUE \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE I386 ====