Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Change Substrate to a PIE, not a PIC
Browse files Browse the repository at this point in the history
  • Loading branch information
ashquarky committed Dec 20, 2016
1 parent 16f83d0 commit 5b4078f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export LD = $(PREFIX)ld
export SOURCES = src
export TARGET = substrate.cosm

export CFLAGS = -c -fPIC
export LDFLAGS = -fPIC -shared
export CFLAGS = -c -fPIE
export LDFLAGS = -fPIE -shared

export CFILES = $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.c))
export OFILES = $(foreach cfl,$(CFILES),$(BUILD)/$(dir $(cfl))$(basename $(notdir $(cfl))).o)
Expand Down

0 comments on commit 5b4078f

Please sign in to comment.