sinofool / build-openssl-ios

Build openssl for iOS development, include armv7 armv7s arm64 i386 and x86_64 support.
http://sinofool.net/blog/archives/172
MIT License
124 stars 57 forks source link

What is the purpose of the patch-include.patch file? #8

Open skuskusku opened 5 years ago

skuskusku commented 5 years ago

Hello Sinofool,

can you please elaborate what the purpose of the patch-include.patch file is? It is used to patch opensslconf.h and removes the following lines from it:

`# define NO_SSL_TRACE

endif

if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)

define NO_STORE

endif

if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)

define NO_UNIT_TEST

` What strikes me is that this is done after the build has completed. Can you please explain what the reason is for removing these preprocessor statements from the header file?

TIA,

-- Stefan

skuskusku commented 5 years ago

Sorry, I garbled the formatting, code removed from the header file should look like this:

#  define NO_SSL_TRACE
# endif
# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
#  define NO_STORE
# endif
# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
#  define NO_UNIT_TEST

Thanks,

-- Stefan