package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
PATCH 1/1 package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
For instance on risc-v 64 arch the build would otherwise fail because of undefined ucontext_t because "-DOPENSSL_NO_ASYNC" would not propagate through to CFLAGS in the Makefile.
--- package/libopenssl/libopenssl.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/libopenssl/libopenssl.mk +2 -2
@@ -67,7 +67,7 @@ define HOST_LIBOPENSSL_CONFIGURE_CMDS shared \ zlib-dynamic \ ) - $(SED) "s#-O[0-9s]#$(HOST_CFLAGS)#" $(@D)/Makefile + $(SED) "s#-O[0-9sg]#$(HOST_CFLAGS)#" $(@D)/Makefile endef define LIBOPENSSL_CONFIGURE_CMDS
@@ -91,7 +91,7 @@ define LIBOPENSSL_CONFIGURE_CMDS $(if $(BR2_STATIC_LIBS),zlib,zlib-dynamic) \ ) $(SED) "s#-march=[-a-z0-9] ##" -e "s#-mcpu=[-a-z0-9] ##g" $(@D)/Makefile - $(SED) "s#-O[0-9s]#$(LIBOPENSSL_CFLAGS)#" $(@D)/Makefile + $(SED) "s#-O[0-9sg]#$(LIBOPENSSL_CFLAGS)#" $(@D)/Makefile $(SED) "s# build_tests##" $(@D)/Makefile endef
Signature · 1 line
2.17.1
Yann E. MORIN
AppliedPATCH 1/1 package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
Yann, All,
On 2021-02-02 17:53 +0100, Yann Sionneau via buildroot spake thusly:
Quoted 5 lines
For instance on risc-v 64 arch the build would otherwise fail because of undefined
ucontext_tbecause "-DOPENSSL_NO_ASYNC" would not propagate through to CFLAGS in theMakefile.Signed-off-by Yann Sionneau <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 34 lines
--- package/libopenssl/libopenssl.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/libopenssl/libopenssl.mk +2
-2@@ -67,7 +67,7 @@ define HOST_LIBOPENSSL_CONFIGURE_CMDS shared \ zlib-dynamic \ ) - $(SED) "s#-O[0-9s]#$(HOST_CFLAGS)#" $(@D)/Makefile + $(SED) "s#-O[0-9sg]#$(HOST_CFLAGS)#" $(@D)/Makefile endef define LIBOPENSSL_CONFIGURE_CMDS@@ -91,7 +91,7 @@ define LIBOPENSSL_CONFIGURE_CMDS $(if $(BR2_STATIC_LIBS),zlib,zlib-dynamic) \ ) $(SED) "s#-march=[-a-z0-9] ##" -e "s#-mcpu=[-a-z0-9] ##g" $(@D)/Makefile - $(SED) "s#-O[0-9s]#$(LIBOPENSSL_CFLAGS)#" $(@D)/Makefile + $(SED) "s#-O[0-9sg]#$(LIBOPENSSL_CFLAGS)#" $(@D)/Makefile $(SED) "s# build_tests##" $(@D)/Makefile endefSignature · 7 lines
2.17.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
In reply to Yann SionneauQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann Sionneau via buildroot <[email protected]> writes:
For instance on risc-v 64 arch the build would otherwise fail because of undefined
ucontext_tbecause "-DOPENSSL_NO_ASYNC" would not propagate through to CFLAGS in theMakefile.Signed-off-by Yann Sionneau <[email protected]>
Committed to 2020.02.x and 2020.11.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard