refactor: hectic C: static-asan

This commit is contained in:
2025-04-20 13:38:16 +00:00
parent 30778b1955
commit 8857835409
2 changed files with 1 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ esac
RUN_TESTS=1 RUN_TESTS=1
OPTFLAGS="-O2" OPTFLAGS="-O2"
CFLAGS="-Wall -Wextra -Werror -pedantic -fsanitize=address -fanalyzer" CFLAGS="-Wall -Wextra -Werror -pedantic -fsanitize=address -fanalyzer"
LDFLAGS="-lhectic" LDFLAGS="-lhectic -static-libasan"
STD_FLAGS="-std=c99" STD_FLAGS="-std=c99"
COLOR_FLAG="" COLOR_FLAG=""
DEBUG=0 DEBUG=0

View File

@@ -11,8 +11,5 @@ PG_CFLAGS += $(shell $(HECTIC_CONFIG) --cflags)
PG_LDFLAGS += -Wl,-rpath,$(shell $(HECTIC_CONFIG) --libdir) PG_LDFLAGS += -Wl,-rpath,$(shell $(HECTIC_CONFIG) --libdir)
SHLIB_LINK += $(shell $(HECTIC_CONFIG) --libs) SHLIB_LINK += $(shell $(HECTIC_CONFIG) --libs)
PG_CFLAGS += -fsanitize=address
PG_LDFLAGS += -fsanitize=address
PGXS := $(shell $(PG_CONFIG) --pgxs) PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)