openssl for Windows
cover openssl for Windows
Patch to allow building openssl for Windows.
openssl can also become part of SDK, i.e:
SDKMACHINE="x86_64-mingw32"
MACHINE = "qemux86-64" TOOLCHAIN_HOST_TASK_append = " nativesdk-openssl "
Juro Bystricky (1):
openssl: build for mingw
.../openssl/openssl/mingw-targets.patch | 13 +++++++++++++ recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
Signature · 1 line
2.7.4
PATCH 1/1 openssl: build for mingw
Build openssl.exe and several .dll files needed to run openssl under Windows
--- .../openssl/openssl/mingw-targets.patch | 13 +++++++++++++ recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
recipes-connectivity/openssl/openssl/mingw-targets.patch new file +13 -0
@@ -0,0 +1,13 @@ +--- a/Configure ++++ b/Configure +@@ -672,6 +668,10 @@ my %table=( + + # MinGW + "mingw", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++"mingw32-x86_64","gcc:-mno-cygwin -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE::-D_MT:MINGW64:-lws2_32 -lgdi32 -lcrypt32:SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${x86_64_asm}:mingw64:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll.a", ++"i686-pokysdk-mingw32", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++"mingw32-i686", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i686 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++ + # As for OPENSSL_USE_APPLINK. Applink makes it possible to use .dll + # compiled with one compiler with application compiled with another + # compiler. It's possible to engage Applink support in mingw64 build,
recipes-connectivity/openssl/openssl_1.0.2o.bbappend new file +19 -0
@@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append_mingw32 = " file://mingw-targets.patch" + +EXTRA_LIBS_mingw32 = "-lws2_32 -lgdi32 -lcrypt32 -lgcc" + +CFLAG_remove_mingw32 = " -DTERMIO" +CFLAG_remove_mingw32 = " -DHAVE_CRYPTODEV" +CFLAG_remove_mingw32 = " -Wa,--noexecstack" +CFLAG_append_mingw32 = " -DNOCRYPT -mno-cygwin -DWIN32_LEAN_AND_MEAN" + +do_compile_prepend_mingw32 () { + export EX_LIBS="${EXTRA_LIBS}" +} + +do_install_prepend_mingw32 () { + export EX_LIBS="${EXTRA_LIBS}" +} +
Signature · 1 line
2.7.4
Re: [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw
Does this also work for rocko and master if the bbappend used a wildcard? Or is it not required for rocko and master?
Ross
Quoted 58 lines · Juro Bystricky
Build openssl.exe and several .dll files needed to run openssl under Windows
Signed-off-by Juro Bystricky <[email protected]>--- .../openssl/openssl/mingw-targets.patch | 13 +++++++++++++ recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappendrecipes-connectivity/openssl/openssl/mingw-targets.patch new file +13
-0@@ -0,0 +1,13 @@ +--- a/Configure ++++ b/Configure +@@ -672,6 +668,10 @@ my %table=( + + # MinGW + "mingw", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++"mingw32-x86_64","gcc:-mno-cygwin -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE::-D_MT:MINGW64:-lws2_32 -lgdi32 -lcrypt32:SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${x86_64_asm}:mingw64:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll.a", ++"i686-pokysdk-mingw32", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++"mingw32-i686", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i686 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a", ++ + # As for OPENSSL_USE_APPLINK. Applink makes it possible to use .dll + # compiled with one compiler with application compiled with another + # compiler. It's possible to engage Applink support in mingw64 build,recipes-connectivity/openssl/openssl_1.0.2o.bbappend new file +19
-1@@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append_mingw32 = " file://mingw-targets.patch" + +EXTRA_LIBS_mingw32 = "-lws2_32 -lgdi32 -lcrypt32 -lgcc" + +CFLAG_remove_mingw32 = " -DTERMIO" +CFLAG_remove_mingw32 = " -DHAVE_CRYPTODEV" +CFLAG_remove_mingw32 = " -Wa,--noexecstack" +CFLAG_append_mingw32 = " -DNOCRYPT -mno-cygwin -DWIN32_LEAN_AND_MEAN" + +do_compile_prepend_mingw32 () { + export EX_LIBS="${EXTRA_LIBS}" +} + +do_install_prepend_mingw32 () { + export EX_LIBS="${EXTRA_LIBS}" +} + --2.7.4
Re: [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw
Quoted 5 lines
Does this also work for rocko and master if the bbappend used a wildcard? Or is it not required for rocko and master?
Good question. I am inclined to think it should work. (I will test it).
Juro
You probably need to do this for openssl 1.1 as well as it soon will be the default.
Alex
2018-07-12 0:42 GMT+02:00 Juro Bystricky <[email protected]>:
Quoted 25 lines
Patch to allow building openssl for Windows.
openssl can also become part of SDK, i.e:SDKMACHINE="x86_64-mingw32"
MACHINE = "qemux86-64"TOOLCHAIN_HOST_TASK_append= " nativesdk-openssl "Juro Bystricky (1):
openssl: build for mingw.../openssl/openssl/mingw-targets.patch | 13 +++++++++++++ recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend--
2.7.4--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto