From 0df09bcaa811575728bafa61fb106c7afabdbb3e Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Thu, 11 Jul 2024 19:53:51 +0100 Subject: [PATCH 1/3] Link against hxcpp's mbedtls in static builds This avoids lime's mbedtls overwriting hxcpp's, which has caused issues in the past. --- project/Build.xml | 2 +- project/lib/curl-files.xml | 13 +++++++++++-- templates/cpp/static/BuildMain.xml | 4 ++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/project/Build.xml b/project/Build.xml index 0310460d9a..50a514ba09 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -371,7 +371,7 @@ - + diff --git a/project/lib/curl-files.xml b/project/lib/curl-files.xml index 432aa28f7b..aabf1f41c1 100644 --- a/project/lib/curl-files.xml +++ b/project/lib/curl-files.xml @@ -1,4 +1,5 @@ + @@ -23,7 +24,15 @@ - + + +
+ + + + + +
@@ -167,4 +176,4 @@
-
\ No newline at end of file + diff --git a/templates/cpp/static/BuildMain.xml b/templates/cpp/static/BuildMain.xml index ecc5071300..7656952edc 100644 --- a/templates/cpp/static/BuildMain.xml +++ b/templates/cpp/static/BuildMain.xml @@ -2,6 +2,8 @@ + + @@ -11,6 +13,7 @@ + ::foreach ndlls:: ::end:: @@ -35,6 +38,7 @@ + From 6377cce1647cf9b71beeee73378da06658e90e26 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Fri, 12 Jul 2024 11:03:56 +0100 Subject: [PATCH 2/3] Support hxcpp older than 4.3.0 for mbedtls linking Hxcpp 4.3.0 has an mbedtls_config.h file in ${HXCPP}/src/hx/libs/ssl, which we have to ensure is included, but older versions do not. To support both 4.3.0 and older versions, we can add an empty mbedtls_config.h and add the include path at the end. This way it will only be used if it does not exist in the previous include paths. --- project/lib/curl-files.xml | 1 + project/lib/custom/mbedtls_hxcpp/mbedtls_config.h | 0 2 files changed, 1 insertion(+) create mode 100644 project/lib/custom/mbedtls_hxcpp/mbedtls_config.h diff --git a/project/lib/curl-files.xml b/project/lib/curl-files.xml index aabf1f41c1..541d3cf4f2 100644 --- a/project/lib/curl-files.xml +++ b/project/lib/curl-files.xml @@ -30,6 +30,7 @@ + diff --git a/project/lib/custom/mbedtls_hxcpp/mbedtls_config.h b/project/lib/custom/mbedtls_hxcpp/mbedtls_config.h new file mode 100644 index 0000000000..e69de29bb2 From 13903b7245cf8b164478dcec5df28f816692aeec Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Fri, 12 Jul 2024 10:47:49 +0100 Subject: [PATCH 3/3] Update curl submodule Hxcpp's mbedtls has MBEDTLS_NET_C disabled, which meant that older versions of curl which use this feature cannot be linked against it. This version of curl no longer requires this feature, which avoids the issue. --- project/lib/curl | 2 +- project/lib/curl-files.xml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/project/lib/curl b/project/lib/curl index 462196e6b4..c12fb3ddaf 160000 --- a/project/lib/curl +++ b/project/lib/curl @@ -1 +1 @@ -Subproject commit 462196e6b4a47f924293a0e26b8e9c23d37ac26f +Subproject commit c12fb3ddaf48e709a7a4deaa55ec485e4df163ee diff --git a/project/lib/curl-files.xml b/project/lib/curl-files.xml index 541d3cf4f2..1f25e9962d 100644 --- a/project/lib/curl-files.xml +++ b/project/lib/curl-files.xml @@ -51,7 +51,6 @@ - @@ -68,12 +67,12 @@ + - @@ -86,12 +85,12 @@ - + @@ -99,6 +98,7 @@ + @@ -113,6 +113,7 @@ + @@ -123,6 +124,7 @@ +