mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
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.
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a00b6354a2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
a7a6b6be72
commit
d9e2f5ad18
@@ -65,7 +65,7 @@ define HOST_LIBOPENSSL_CONFIGURE_CMDS
|
|||||||
shared \
|
shared \
|
||||||
zlib-dynamic \
|
zlib-dynamic \
|
||||||
)
|
)
|
||||||
$(SED) "s#-O[0-9s]#$(HOST_CFLAGS)#" $(@D)/Makefile
|
$(SED) "s#-O[0-9sg]#$(HOST_CFLAGS)#" $(@D)/Makefile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LIBOPENSSL_CONFIGURE_CMDS
|
define LIBOPENSSL_CONFIGURE_CMDS
|
||||||
@@ -89,7 +89,7 @@ define LIBOPENSSL_CONFIGURE_CMDS
|
|||||||
$(if $(BR2_STATIC_LIBS),zlib,zlib-dynamic) \
|
$(if $(BR2_STATIC_LIBS),zlib,zlib-dynamic) \
|
||||||
)
|
)
|
||||||
$(SED) "s#-march=[-a-z0-9] ##" -e "s#-mcpu=[-a-z0-9] ##g" $(@D)/Makefile
|
$(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
|
$(SED) "s# build_tests##" $(@D)/Makefile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user