Hi, On Dec 19, 2014, at 0:47, Barry Kauler <[email protected]> wrote:
> > Hi, > I have compiled the 'hardinfo' pkg in a native environment, no > problem. These steps: > > mkdir build > cd build > cmake .. -DCMAKE_INSTALL_PREFIX=/usr > make > make install > > I got hardinfo from here: > > https://github.com/lpereira/hardinfo > > The problem is, when I tried to compile it in T2, got this error: > > [ 15%] Building C object CMakeFiles/benchmark.dir/modules/benchmark/md5.c.o > /TOOLCHAIN/src.hardinfo.wary6.20141219.073702.26845.puppypc7558/hardinfo-0.5.2pre-2014/modules/benchmark/md5.c:40:2: > error: #error You must compile this program without "-O". (Or else the > benchmark results may be different!) > #error You must compile this program without "-O". (Or else the > benchmark results may be different!) > ^ > CMakeFiles/benchmark.dir/build.make:264: recipe for target > 'CMakeFiles/benchmark.dir/modules/benchmark/md5.c.o' failed > make[2]: *** [CMakeFiles/benchmark.dir/modules/benchmark/md5.c.o] Error 1 > CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/benchmark.dir/all' > failed > make[1]: *** [CMakeFiles/benchmark.dir/all] Error 2 > Makefile:116: recipe for target 'all' failed > make: *** [all] Error 2 > > > It seems that T2 is putting in that "-O"? > How can I tell it not to? It sounds more like T2 is removing -O… What is your optimization setting in the T2 Config (none, speed, size?)? T2 filters all compiler invocations to normalize such settings and insert exactly what is chosen in the T2 Config, ... -- ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe t2
