Andreas Metzler schrieb am Dienstag, 26. Oktober 2021 um 08:21:25 UTC+2:

>
> > Could you please test, if this fixes your issues? 
> [...] 
> > -set(_common_libs ${TIFF_LIBRARIES} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} 
> ${PNG_LIBRARIES}) 
> > +# check if libm needs additional linker flag 
> > +include(CheckCSourceCompiles) 
> > +set(LIBM_TEST_SRC "#include <math.h>\nint main() { float f=exp(2.0); 
> }") 
> > +check_c_source_compiles("${LIBM_TEST_SRC}" HAVE_EXP) 
>
> This check succeeds with gcc because of the gcc-builtin 
> https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html 
> https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-fno-builtin 
> is used but fails later in the real build where the gcc-builtin is not 
> used. (ansi or or std options set there.) 
>
> Sorry, but I don't understand. 
According the the doc of CheckCSourceCompiles, it should take all flags 
into consideration:

CMAKE_REQUIRED_FLAGS

Additional flags to pass to the compiler. Note that the contents of 
CMAKE_C_FLAGS and its associated configuration-specific variable are 
automatically added to the compiler command before the contents of 
CMAKE_REQUIRED_FLAGS.

So where do you add -fno-builtin?

Thomas


-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/de4cd046-f628-4683-8dde-4d6f3804f0afn%40googlegroups.com.

Reply via email to