diff --git a/Makefile.nanvix b/Makefile.nanvix index 12706137a3206f2..68e79fd7b0cf0b4 100644 --- a/Makefile.nanvix +++ b/Makefile.nanvix @@ -156,15 +156,7 @@ CONFIGURE_ENV = \ CFLAGS="-L$(SYSROOT_PATH)/lib -I$(SYSROOT_PATH)/include" \ CFLAGS_NODIST="-fno-semantic-interposition" \ LDFLAGS="-T$(SYSROOT_PATH)/lib/user.ld -Wl,--allow-multiple-definition -Wl,-pie -Wl,--export-dynamic -Wl,--no-dynamic-linker" \ - LIBS="-Wl,--start-group $(LIBPOSIX) $(LIBC) $(LIBM) -lsqlite3 -lssl -lcrypto -lz -lbz2 -lffi -Wl,--end-group" \ - LIBSQLITE3_LIBS="-L$(SYSROOT_PATH)/lib -lsqlite3" \ - LIBSQLITE3_CFLAGS="-I$(SYSROOT_PATH)/include" \ - ZLIB_LIBS="-L$(SYSROOT_PATH)/lib -lz" \ - ZLIB_CFLAGS="-I$(SYSROOT_PATH)/include" \ - BZIP2_LIBS="-L$(SYSROOT_PATH)/lib -lbz2" \ - BZIP2_CFLAGS="-I$(SYSROOT_PATH)/include" \ - LIBFFI_LIBS="-L$(SYSROOT_PATH)/lib -lffi" \ - LIBFFI_CFLAGS="-I$(SYSROOT_PATH)/include" + LIBS="-Wl,--start-group $(LIBPOSIX) $(LIBC) $(LIBM) -Wl,--end-group" # Configure options for Nanvix CONFIGURE_OPTS = \ @@ -180,7 +172,6 @@ CONFIGURE_OPTS = \ --exec-prefix="$(INSTALL_PREFIX)" \ --with-ensurepip=no \ --with-pkg-config=no \ - --with-openssl="$(SYSROOT_PATH)" \ --disable-ipv6 \ ac_cv_file__dev_ptmx=no \ ac_cv_file__dev_ptc=no \ diff --git a/Modules/Setup.local b/Modules/Setup.local new file mode 100644 index 000000000000000..191670ab1cbde1a --- /dev/null +++ b/Modules/Setup.local @@ -0,0 +1,48 @@ +# Disable non-essential C extension modules to reduce binary size. +# All stdlib .py files remain in the sysroot; only the C accelerators +# are excluded from the statically-linked binary. + +*disabled* +_decimal +unicodedata +_ctypes +_sqlite3 +_ssl +_codecs_cn +_codecs_hk +_codecs_iso2022 +_codecs_jp +_codecs_kr +_codecs_tw +_multibytecodec +pyexpat +_elementtree +_posixsubprocess +select +_socket +_asyncio +_pickle +_json +math +cmath +_statistics +_datetime +_bz2 +binascii +array +_bisect +_contextvars +_csv +_heapq +_opcode +_queue +_random +_struct +_zoneinfo +_md5 +_sha1 +_sha256 +_sha512 +_sha3 +_blake2 +zlib