Skip to content

Commit

Permalink
fix: protect flags and no codesign for osx compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Jan 10, 2025
1 parent 5c141b8 commit 72b5a1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/init.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cc := ${CC}

cflags_includes := -Isrc -Ilib/tinycc
cflags_gnu := -DLIBC_GNU -D_GNU_SOURCE
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
cflags_stack_protect := -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2

CFLAGS ?= -O2 ${cflags_stack_protect}

Expand Down
2 changes: 2 additions & 0 deletions build/osx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ include build/init.mk

cc := clang
cflags += -DCJIT_BUILD_OSX
extra_tinycc_config += --config-codesign=no

all: embed-posix cjit.command


cjit.command: ${SOURCES}
$(cc) $(cflags) -o $@ $(SOURCES) ${ldflags} ${ldadd}

Expand Down

0 comments on commit 72b5a1a

Please sign in to comment.