Mercurial > trustbridge
comparison INSTALL @ 1264:3cd8dd706aaa
Add possibility to build with CLANG and document it.
This only works for now with the c parts of the code.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 26 Sep 2014 17:59:49 +0200 |
parents | 827abc0923a8 |
children | b18f08034c24 |
comparison
equal
deleted
inserted
replaced
1263:827abc0923a8 | 1264:3cd8dd706aaa |
---|---|
105 hg clone https://wald.intevation.org/hg/trustbridge/nss-cmake-static | 105 hg clone https://wald.intevation.org/hg/trustbridge/nss-cmake-static |
106 mkdir build-linux | 106 mkdir build-linux |
107 cd build-linux | 107 cd build-linux |
108 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX | 108 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX |
109 | 109 |
110 To build with clang (if it is installed): | |
111 | |
112 mkdir build-clang | |
113 cd build-clang | |
114 CC=/usr/bin/clang \ | |
115 CXX=/usr/bin/clang++ \ | |
116 cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \ | |
117 -DUSE_CLANG=TRUE | |
110 | 118 |
111 I386 | 119 I386 |
112 ==== | 120 ==== |
113 Install dependencies (list might be incomplete) | 121 Install dependencies (list might be incomplete) |
114 | 122 |
165 --disable-ftp --enable-http --enable-shared=no -enable-static=yes \ | 173 --disable-ftp --enable-http --enable-shared=no -enable-static=yes \ |
166 --with-polarssl=$YOURPREFIX/i386 --without-ca-bundle --without-ca-path \ | 174 --with-polarssl=$YOURPREFIX/i386 --without-ca-bundle --without-ca-path \ |
167 --without-zlib | 175 --without-zlib |
168 make && make install | 176 make && make install |
169 | 177 |
170 Now for Trustbridge itself | 178 Now for Trustbridge itself: |
179 | |
171 cd ../../trustbridge | 180 cd ../../trustbridge |
172 mkdir build-i386 | 181 mkdir build-i386 |
173 cd build-i386 | 182 cd build-i386 |
174 cmake .. -DCMAKE_PREFIX_PATH="$YOURPREFIX/i386" \ | 183 cmake .. -DCMAKE_PREFIX_PATH="$YOURPREFIX/i386" \ |
175 -DCMAKE_VERBOSE_MAKEFILE=True \ | 184 -DCMAKE_VERBOSE_MAKEFILE=True \ |