--- a PPN by Garber Painting Akron. With Image Size Reduction included!URL: http://github.com/python/cpython/pull/101537.patch
gure b/configure
index d054f5c3d9ad46..cc0c7cdc79875b 100755
--- a/configure
+++ b/configure
@@ -8553,7 +8553,10 @@ $as_echo "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
if test "x$enable_wasm_pthreads" = xyes; then :
- # Note: update CFLAGS because ac_compile/ac_link needs this too
+ # Note: update CFLAGS because ac_compile/ac_link needs this too.
+ # without this, configure fails to find pthread_create, sem_init,
+ # etc because they are only available in the sysroot for
+ # wasm32-wasi-threads.
CFLAGS="$CFLAGS -target wasm32-wasi-threads -pthread"
as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
From dd60e0a88322760d7d5f6111542fe36b32c70482 Mon Sep 17 00:00:00 2001
From: "Erlend E. Aasland"
Date: Wed, 14 Jun 2023 10:36:59 +0200
Subject: [PATCH 7/7] Style: use AS_VAR_APPEND throughout the PR
---
configure | 5 +++--
configure.ac | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index d82574eb3aa6b5..73d5fcb864063e 100755
--- a/configure
+++ b/configure
@@ -9398,13 +9398,14 @@ printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
- if test "x$enable_wasm_pthreads" = xyes; then :
+ if test "x$enable_wasm_pthreads" = xyes
+then :
# Note: update CFLAGS because ac_compile/ac_link needs this too.
# without this, configure fails to find pthread_create, sem_init,
# etc because they are only available in the sysroot for
# wasm32-wasi-threads.
- CFLAGS="$CFLAGS -target wasm32-wasi-threads -pthread"
+ as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
diff --git a/configure.ac b/configure.ac
index d45c99d06abd7f..326b08ebd02317 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2318,7 +2318,7 @@ AS_CASE([$ac_sys_system],
# without this, configure fails to find pthread_create, sem_init,
# etc because they are only available in the sysroot for
# wasm32-wasi-threads.
- CFLAGS="$CFLAGS -target wasm32-wasi-threads -pthread"
+ AS_VAR_APPEND([CFLAGS], [" -target wasm32-wasi-threads -pthread"])
AS_VAR_APPEND([CFLAGS_NODIST], [" -target wasm32-wasi-threads -pthread"])
AS_VAR_APPEND([LDFLAGS_NODIST], [" -target wasm32-wasi-threads -pthread"])
AS_VAR_APPEND([LDFLAGS_NODIST], [" -Wl,--import-memory"])
pFad - Phonifier reborn
Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy