Skip to content

Commit 74d5381

Browse files
no static for macos
1 parent 3253dfd commit 74d5381

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/cedev-config/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
include $(CURDIR)/../../src/common.mk
1818

1919
CC = gcc
20-
CFLAGS = -Wall -Wextra -Wshadow -static -O3 -std=c99 -Isrc -DNDEBUG -DCEDEV_VERSION="\"$(CEDEV_VERSION)\"" -flto
21-
LDFLAGS = -flto -static
20+
CFLAGS = -Wall -Wextra -Wshadow -O3 -std=c99 -Isrc -DNDEBUG -DCEDEV_VERSION="\"$(CEDEV_VERSION)\"" -flto
21+
LDFLAGS = -flto
2222
LIBRARIES :=
2323

2424
ifeq ($(OS),Windows_NT)
@@ -32,7 +32,8 @@ else
3232
LDFLAGS += -mmacosx-version-min=10.13
3333
else
3434
STRIP = strip --strip-all "$1"
35-
CFLAGS += -D_XOPEN_SOURCE=500
35+
CFLAGS += -D_XOPEN_SOURCE=500 -static
36+
LDFLAGS += -static
3637
LIBRARIES += dl
3738
endif
3839
endif

0 commit comments

Comments
 (0)