mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
security: Enable '-fpie -pie' options
To be sure acrn debug tools are position independent and executable. Tracked-On: #1122 Signed-off-by: wenshelx <wenshengx.wang@intel.com> Acked-by: CHEN Gang <gang.c.chen@intel.com> Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
|
||||
OUT_DIR ?= .
|
||||
CFLAGS += -fpie
|
||||
LDFLAGS += -pie
|
||||
|
||||
all:
|
||||
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
|
||||
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread $(CFLAGS) $(LDFLAGS)
|
||||
cp acrnlog.service $(OUT_DIR)/acrnlog.service
|
||||
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user