From 13b89829812598a1d2612d8304491afbcf01cf55 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 1 Nov 2020 23:56:49 +0100 Subject: Makefile: Fix PIE/PIC flags --- Makefile | 2 +- badwolf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7b24b4d..a7409ab 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ DATADIR ?= $(PREFIX)/share/badwolf APPSDIR ?= $(PREFIX)/share/applications CC ?= cc -CFLAGS ?= -g -O2 -fPIC -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla +CFLAGS ?= -g -O2 -pie -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla DBG ?= PKGCONFIG ?= pkg-config MSGFMT ?= msgfmt diff --git a/badwolf.h b/badwolf.h index fc3328f..e5b33f0 100644 --- a/badwolf.h +++ b/badwolf.h @@ -2,8 +2,8 @@ #define BADWOLF_H_INCLUDED #include -#include #include /* uint64_t */ +#include extern const gchar *homepage; extern const gchar *version; -- cgit v1.3.1-23-gd82d