Skip to content

Commit

Permalink
build: compile ELF binaries with FULL RELRO (#102)
Browse files Browse the repository at this point in the history
Fix #101
  • Loading branch information
raffaem authored Nov 1, 2023
1 parent a08c9c6 commit e4c26c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SQLITE_BRANCH := 3.36

SQLEAN_VERSION := '"$(or $(shell git tag --points-at HEAD),main)"'

LINIX_FLAGS := -Wall -Wsign-compare -Wno-unknown-pragmas -fPIC -shared -Isrc -DSQLEAN_VERSION=$(SQLEAN_VERSION)
LINIX_FLAGS := -z now -z relro -Wall -Wsign-compare -Wno-unknown-pragmas -fPIC -shared -Isrc -DSQLEAN_VERSION=$(SQLEAN_VERSION)
WINDO_FLAGS := -shared -Isrc -DSQLEAN_VERSION=$(SQLEAN_VERSION)
MACOS_FLAGS := -Wall -Wsign-compare -fPIC -dynamiclib -Isrc -DSQLEAN_VERSION=$(SQLEAN_VERSION)

Expand Down Expand Up @@ -136,4 +136,4 @@ ctest:
gcc -Wall -Isrc test/$(package)/$(module).test.c src/$(package)/*.c -o $(package).$(module)
@chmod +x $(package).$(module)
@./$(package).$(module)
@rm -f $(package).$(module)
@rm -f $(package).$(module)

0 comments on commit e4c26c0

Please sign in to comment.