Skip to content

Commit cff598c

Browse files
committed
Purge dynamic libraries from wheels.
1 parent 895e660 commit cff598c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ $$(OPENSSL_WHEEL-$(target)): $$(OPENSSL_LIB-$(target)) $$(BDIST_WHEEL)
435435
cp -r $$(OPENSSL_INSTALL-$(target))/include $$(OPENSSL_INSTALL-$(target))/wheel/opt/include
436436
cp -r $$(OPENSSL_INSTALL-$(target))/lib $$(OPENSSL_INSTALL-$(target))/wheel/opt/lib
437437

438+
# Remove dynamic library content
439+
rm -f $$(OPENSSL_INSTALL-$(target))/wheel/opt/lib/*.dylib
440+
438441
# Copy LICENSE file
439442
# OpenSSL 1.1.1 uses LICENSE; OpenSSL 3 uses LICENSE.txt
440443
if [ -f "$$(OPENSSL_SRCDIR-$(target))/LICENSE.txt" ]; then \
@@ -491,6 +494,9 @@ $$(LIBFFI_WHEEL-$(target)): $$(LIBFFI_LIB-$(target)) $$(BDIST_WHEEL)
491494
cp -r $$(LIBFFI_SRCDIR-$(target))/include $$(LIBFFI_SRCDIR-$(target))/wheel/opt/include
492495
cp -r $$(LIBFFI_SRCDIR-$(target))/.libs $$(LIBFFI_SRCDIR-$(target))/wheel/opt/lib
493496

497+
# Remove dynamic library content
498+
rm -f $$(LIBFFI_SRCDIR-$(target))/wheel/opt/lib/*.dylib
499+
494500
# Copy LICENSE file
495501
cp $$(LIBFFI_SRCDIR-$(os))/LICENSE $$(LIBFFI_WHEEL_DISTINFO-$(target))
496502

0 commit comments

Comments
 (0)