Skip to content

Commit

Permalink
Automatically detect selinux
Browse files Browse the repository at this point in the history
Check if selinux is active and if so add --with-selinux to tinycc configure
command line.

Part of #62
  • Loading branch information
larsks authored and jaromil committed Dec 6, 2024
1 parent 7710867 commit df16f3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ endif

tinycc_config += --with-libgcc

ifeq ($(shell sestatus | awk -F': *' '/SELinux status:/ {print $2}'), enabled)
tinycc_config += --with-selinux
endif

all: lib/tinycc/libtcc.a cjit

cjit: ${SOURCES}
Expand Down

0 comments on commit df16f3f

Please sign in to comment.