Skip to content

Commit 72b5a1a

Browse files
committed
fix: protect flags and no codesign for osx compat
1 parent 5c141b8 commit 72b5a1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/init.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cc := ${CC}
99

1010
cflags_includes := -Isrc -Ilib/tinycc
1111
cflags_gnu := -DLIBC_GNU -D_GNU_SOURCE
12-
cflags_stack_protect := -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
12+
cflags_stack_protect := -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
1313

1414
CFLAGS ?= -O2 ${cflags_stack_protect}
1515

build/osx.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ include build/init.mk
22

33
cc := clang
44
cflags += -DCJIT_BUILD_OSX
5+
extra_tinycc_config += --config-codesign=no
56

67
all: embed-posix cjit.command
78

9+
810
cjit.command: ${SOURCES}
911
$(cc) $(cflags) -o $@ $(SOURCES) ${ldflags} ${ldadd}
1012

0 commit comments

Comments
 (0)