Skip to content

Commit

Permalink
Merge pull request pmem#205 from PatKamin/5.0.3-devel
Browse files Browse the repository at this point in the history
[5.0.3-devel] Fix make test failing
  • Loading branch information
PatKamin authored Sep 28, 2022
2 parents 93273c3 + 32c3e0e commit 83fbcf6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ WARN=-Wall -W -Wno-missing-field-initializers -Wformat -Wformat-security
OPT=$(OPTIMIZATION)
SECURITY_PIC=-fPIE -fPIC
SECURITY_NO_EXEC=-Wl,-z,relro,-z,now,-z,noexecstack
SECURITY_FORTIFY_SOURCE=""
ifneq ($(OPTIMIZATION),-O0)
# the -D_FORTIFY_SOURCE flag only works with optimization enabled
SECURITY_FORTIFY_SOURCE="-D_FORTIFY_SOURCE=2"
else
$(warning Optimization is required to set _FORTIFY_SOURCE)
endif
SECURITY_FLAGS=$(SECURITY_PIC) $(SECURITY_NO_EXEC) $(SECURITY_FORTIFY_SOURCE)
SECURITY_FLAGS=$(SECURITY_PIC) $(SECURITY_NO_EXEC)

PREFIX?=/usr/local
INSTALL_BIN=$(PREFIX)/bin
Expand Down

0 comments on commit 83fbcf6

Please sign in to comment.