refactor: hectic C: static-asan
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user