From 5e6f4b1d2c096ce274960ad74810f15a04ddc0c3 Mon Sep 17 00:00:00 2001 From: Mosder Date: Wed, 16 Sep 2026 10:27:29 +0200 Subject: fix: fixed stripping for shared library --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b8e7157..0c56923 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,10 @@ -CC=gcc +CC=cc CFLAGS=-std=c99 -Wall -Wextra -Wpedantic -fPIC -I./include -O2 CFLAGS_TEST=-std=c99 -Wall -Wextra -Wpedantic -Og -ggdb AR=ar rcs RUN_TESTS=./run_tests -ifneq ($(shell uname -s),Darwin) - CFLAGS+= -s -else +ifeq ($(shell uname -s),Darwin) RUN_TESTS=DYLD_FALLBACK_LIBRARY_PATH="/usr/local/lib:$DYLD_FALLBACK_LIBRARY_PATH" RUN_TESTS+= ./run_tests; rm -rf run_tests.dSYM/ endif @@ -14,7 +12,7 @@ endif both: shared static clean shared: compile headers - $(CC) -shared *.o -o libmoslib.so + $(CC) -s -shared *.o -o libmoslib.so sudo mv libmoslib.so /usr/local/lib static: compile headers -- cgit v1.2.3