vcpkg/ports/libgnutls/ccasflags.patch
Kai Pastor c0cb0414b7
[libidn2] Update to 2.3.7 [libgnutls] Fix android (#37196)
libidn2: Enable android support.

libgnutls: CCAS defaults to CC, but CCASFLAGS would lack what we move to
CPPFLAGS.

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2024-05-29 00:59:46 -07:00

24 lines
716 B
Diff

diff --git a/configure.ac b/configure.ac
index d6f283a..77e5a56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,8 @@ AC_PROG_CC
gl_EARLY
ggl_EARLY
unistring_EARLY
+# Override AM_PROG_AS default
+test "${CCASFLAGS+set}" = set || CCASFLAGS="$CPPFLAGS $CFLAGS"
AM_PROG_AS
AM_PROG_AR
AC_PROG_CXX
@@ -243,7 +245,8 @@ if test "$hw_accel" = aarch64; then
AARCH64_CCASFLAGS="-Wa,-march=all"
AC_MSG_CHECKING([whether the compiler supports -Wa,-march=all])
: > conftest.s
- if "$CCAS" "$AARCH64_CCASFLAGS" -c conftest.s >/dev/null 2>&1; then
+ # As in Makefiles
+ if "$CCAS" "$AARCH64_CCASFLAGS" $CCASFLAGS -c conftest.s >/dev/null 2>&1; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)