Skip to content

Commit

Permalink
Merge pull request #29 from akash-akya/dev
Browse files Browse the repository at this point in the history
Remove UB sanitizer for linux to fix compilation for Alpine linux
  • Loading branch information
akash-akya authored Jul 26, 2023
2 parents ae05d71 + 14c83a1 commit 34b2660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ calling_from_make:

UNAME := $(shell uname)

CFLAGS ?= -Wall -Werror -Wno-unused-parameter -pedantic -std=c99 -O2 -fsanitize=undefined
CFLAGS ?= -Wall -Werror -Wno-unused-parameter -pedantic -std=c99 -O2

ifeq ($(UNAME), Darwin)
CFLAGS += -fsanitize=undefined
TARGET_CFLAGS ?= -fPIC -undefined dynamic_lookup -dynamiclib -Wextra
endif

Expand Down

0 comments on commit 34b2660

Please sign in to comment.