* [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
@ 2021-02-02 16:53 Yann Sionneau
2021-02-02 21:20 ` Yann E. MORIN
2021-02-04 16:53 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Yann Sionneau @ 2021-02-02 16:53 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
---
package/libopenssl/libopenssl.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk
index f4bb62911c..972ed534ba 100644
--- a/package/libopenssl/libopenssl.mk
+++ b/package/libopenssl/libopenssl.mk
@@ -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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
2021-02-02 16:53 [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y Yann Sionneau
@ 2021-02-02 21:20 ` Yann E. MORIN
2021-02-04 16:53 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2021-02-02 21:20 UTC (permalink / raw)
To: buildroot
Yann, All,
On 2021-02-02 17:53 +0100, Yann Sionneau via buildroot spake thusly:
> 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.
>
> Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/libopenssl/libopenssl.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk
> index f4bb62911c..972ed534ba 100644
> --- a/package/libopenssl/libopenssl.mk
> +++ b/package/libopenssl/libopenssl.mk
> @@ -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
>
> --
> 2.17.1
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y
2021-02-02 16:53 [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y Yann Sionneau
2021-02-02 21:20 ` Yann E. MORIN
@ 2021-02-04 16:53 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-02-04 16:53 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann Sionneau via buildroot <buildroot@busybox.net> writes:
> 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.
> Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
Committed to 2020.02.x and 2020.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-04 16:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 16:53 [Buildroot] [PATCH 1/1] package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y Yann Sionneau
2021-02-02 21:20 ` Yann E. MORIN
2021-02-04 16:53 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.