Currently our setenv-*.sh files, like setenv-ios.sh, do not set CPPFLAGS, 
CXXFLAGS and LDFLAGS. Instead they set prefixed flags like IOS_CPPFLAGS, 
IOS_CXXFLAGS and IOS_LDFLAGS. GNUmakefile-cross then uses the prefixed 
flags to build the library. 

UB encountered a bad interaction where artifacts from the host environment 
cross-pollinated into the cross-compile environment. It resulted in a 
failed compile.

The fix is to actually set the variables in the setenv-*.sh scripts, and 
modify GNUmakefile-cross to use those variables. It will avoid host 
environment cross-pollination by setting all variables to a known state.

We made that change at https://github.com/weidai11/cryptopp/issues/1014. As 
a side effect, you can use the setenv-*.sh for any project, and not just 
Crypto++. For example, it will work with Autotools projects.

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/513f5826-c17a-4b09-b870-d0deba35876cn%40googlegroups.com.

Reply via email to