Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
	modified:   mk/gcc.mk
  • Loading branch information
bsekisser committed Jan 16, 2025
1 parent 5b51a1a commit c93ad10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mk/gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ AR?=ar
CC_AR=${AR} q ${LIBAR}
CFLAGS+=-MD
CFLAGS_INCLUDE=-I
LDFLAGS+=-latomic
CHECK_ATOMIC := $(shell echo "int main() { __atomic_fetch_add_8(0, 0, 0); return 0; }" | \
$(CC) -x c -o /dev/null - $(CFLAGS) $(LDFLAGS) >/dev/null 2>&1 || echo "-latomic")
LDFLAGS+=$(CHECK_ATOMIC)
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
Expand Down

0 comments on commit c93ad10

Please sign in to comment.