Jeffrey Walton
2015-04-06 00:01:42 UTC
...
...
There's another hidden issue that's not readily apparent. That's...
calling LD directly rather than allowing the compiler driver to invoke
it.
If someone tries to cross-compile out of the box by specifying CFLAGS
and CXXFLAGS (like CFLAGS += --sysroot=...), or someone uses Clang's
sanitizers to test the library (CFLAGS += -fsanitize=undefined
-fsanitize=address), then the linker will fail the link due to missing
libraries.
Passing sysroot and sanitizers through CFLAGS and CXXFLAGS and using
the compiler driver to invoke the linker ensures everything is passed
correctly. You can do it invoking LD directly, its just much more
painful.
I perform sanitizer checks and cross compiles frequently on libraries.
This is a recurring problem in nearly every library I acceptance test
and port.
_______________________________________________
Cryptlib mailing list
***@mbsks.franken.deAdministration via Mail: cryptlib-***@mbsks.franken.de
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.