Skip to contentSkip to conversation

openssl: Use ${CFLAGS} not ${FULL_OPTIMIZATION}

PATCH Applied Phil Blundell 2 participants 2 messages Oct 29, 2012 – Oct 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: Use ${CFLAGS} not ${FULL_OPTIMIZATION}

The latter variable is only applicable for target builds and could result in passing incompatible options (and/or failing to pass required options) to ${BUILD_CC} for a virtclass-native build.

---
 meta/recipes-connectivity/openssl/openssl.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl.inc +1 -1
index 089b9a4..1b2be93 100644
@@ -19,7 +19,7 @@ S = "${WORKDIR}/openssl-${PV}"
 
 AR_append = " r"
 CFLAG = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
-	-DTERMIO ${FULL_OPTIMIZATION} -Wall"
+	-DTERMIO ${CFLAGS} -Wall"
 
 # Avoid binaries being marked as requiring an executable stack (which causes 
 # issues with SELinux on the host)
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 15 lines · Phil Blundell

The latter variable is only applicable for target builds and could result in passing incompatible options (and/or failing to pass required options) to ${BUILD_CC} for a virtclass-native build.

---
  meta/recipes-connectivity/openssl/openssl.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl.inc +0 -0
index 089b9a4..1b2be93 100644

meta/recipes-connectivity/openssl/openssl.inc S = "${WORKDIR}/openssl-${PV}" · line 25

Quoted 8 lines
meta/recipes-connectivity/openssl/openssl.inc +1 -1
@@ -19,7 +19,7 @@ S = "${WORKDIR}/openssl-${PV}"
 
  AR_append = " r"
  CFLAG = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
-	-DTERMIO ${FULL_OPTIMIZATION} -Wall"
+	-DTERMIO ${CFLAGS} -Wall"
 
  # Avoid binaries being marked as requiring an executable stack (which causes
  # issues with SELinux on the host)

Merged into OE-Core

Thanks
Sau!