Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ PROVE_TESTS = test/t/*.pl

PG_CPPFLAGS += -I./include

# Full RELRO + immediate binding: keep the GOT read-only after load and
# resolve all symbols at load time. GNU-ld/lld only, so guard to ELF/Linux
# (Apple ld rejects -z ...).
ifeq ($(shell uname -s),Linux)
PG_LDFLAGS += -Wl,-z,relro,-z,now
endif

PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
Expand Down
Loading