MAINT Move some flags from LDFLAGS_BASE to LDFLAGS_MAIN (#3892)

These flags are not needed when building packages.
This commit is contained in:
Hood Chatham 2023-06-01 22:14:13 -06:00 committed by GitHub
parent 1aea59f55a
commit 2062852fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,6 @@ export LDFLAGS_BASE=\
$(OPTFLAGS) \
$(DBGFLAGS) \
$(DBG_LDFLAGS) \
-s MODULARIZE=1 \
-s LZ4=1 \
-L $(CPYTHONROOT)/installs/python-$(PYVERSION)/lib/ \
-s WASM_BIGINT \
$(EXTRA_LDFLAGS)
@ -104,6 +102,8 @@ export CXXFLAGS_BASE=\
export SIDE_MODULE_LDFLAGS= $(LDFLAGS_BASE) -s SIDE_MODULE=1
export MAIN_MODULE_LDFLAGS= $(LDFLAGS_BASE) \
-s MAIN_MODULE=1 \
-s MODULARIZE=1 \
-s LZ4=1 \
-s EXPORT_NAME="'_createPyodideModule'" \
-s EXPORT_EXCEPTION_HANDLING_HELPERS \
-s EXCEPTION_CATCHING_ALLOWED=['we only want to allow exception handling in side modules'] \