Proper strip on all platforms

This commit is contained in:
RichardG867
2026-01-22 20:25:07 -03:00
parent ca7d0418f2
commit 3867daa9f7

View File

@@ -3,6 +3,7 @@ EXT ?= .dll
else
ifeq "$(shell uname -s)" "Darwin"
EXT ?= .dylib
STRIPFLAGS ?= -X
else
EXT ?= .so
endif
@@ -66,5 +67,5 @@ OBJS = edc.c \
build:
$(CC) -shared $(CFLAGS) $(OBJS) -I. -fPIC -fomit-frame-pointer -lz -o $(DEST)
ifneq "$(DEBUG)" "y"
$(STRIP) -x $(DEST)
$(STRIP) $(STRIPFLAGS) $(DEST)
endif