Skip to content

Commit

Permalink
Reenable ubsan
Browse files Browse the repository at this point in the history
  • Loading branch information
HalosGhost committed Oct 25, 2020
1 parent c7db92f commit f195a00
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
@@ -1,16 +1,12 @@
PROGNM = enlighten

CC ?= gcc
CFLAGS ?= -O2 -fPIE -flto -fstack-protector-strong --param=ssp-buffer-size=1 -Wno-reserved-id-macro -Wall -Wextra -Wpedantic -Werror -std=gnu18
CFLAGS ?= -O2 -fPIE -flto -fstack-protector-strong --param=ssp-buffer-size=1 -Wno-reserved-id-macro -Wall -Wextra -Wpedantic -Werror -std=gnu18 -fsanitize=undefined
VER ?= $(shell (git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || date +"v0.r%Y%m%d"))
FMFLAGS = -wp -then -wp -wp-rte
SOURCES = $(wildcard src/*.c)
ARCH ?= $(shell uname -m)

ifneq ($(ARCH), aarch64)
CFLAGS += -fsanitize=undefined
endif

ifneq ($(CC), tcc)
CFLAGS += -pie -D_FORTIFY_SOURCE=2
LDFLAGS += -Wl,-z,relro,-z,now
Expand Down

0 comments on commit f195a00

Please sign in to comment.