diff options
| author | Mosder <git@mosder.eu> | 2026-09-16 10:27:29 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-16 10:27:29 +0200 |
| commit | 5e6f4b1d2c096ce274960ad74810f15a04ddc0c3 (patch) | |
| tree | 2d3425899744587094343a081f20c74f38e416cf | |
| parent | e8d922d09df83ce8b4e3594a4809de204f1ac79a (diff) | |
fix: fixed stripping for shared library
| -rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |
