Skip to contentSkip to conversation

package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y

PATCH New Yann Sionneau 3 participants 3 messages Feb 2, 2021 – Feb 4, 2021

lore
Share & tools
lore
#0 lore raw

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
index f4bb62911c..972ed534ba 100644
@@ -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
#1 lore raw

PATCH 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_t because "-DOPENSSL_NO_ASYNC" would not propagate through to CFLAGS in the Makefile.

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
index f4bb62911c..972ed534ba 100644
@@ -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 · 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.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/libopenssl: fix issue when compiling with BR2_OPTIMIZE_G=y

In reply to Yann Sionneau
Quoted 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_t because "-DOPENSSL_NO_ASYNC" would not propagate through to CFLAGS in the Makefile.

Committed to 2020.02.x and 2020.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard