Change-Id: I215a8c004194973c1b54688a91fa806ad71802d7
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
modname = $(basetarget)
name_fix = $(subst $(comma),_,$(subst -,_,$1))
-AM_CFLAGS = ${my_CFLAGS} \
+AM_CFLAGS = \
+ -Wall \
+ -Wchar-subscripts \
+ -Wformat-security \
+ -Wmissing-declarations \
+ -Wmissing-prototypes \
+ -Wnested-externs \
+ -Wpointer-arith \
+ -Wshadow \
+ -Wsign-compare \
+ -Wstrict-prototypes \
+ -Wtype-limits \
+ -D_GNU_SOURCE=1 \
+ -fPIE \
-D"FAULTD_MODNAME_T=$(call name_fix,$(modname))"
AM_LDFLAGS = \
-Wl,--gc-sections \
- -Wl,--as-needed
+ -Wl,--as-needed \
+ -pie
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
printf\
])
-my_CFLAGS="\
--Wall \
--Wchar-subscripts \
--Wformat-security \
--Wmissing-declarations \
--Wmissing-prototypes \
--Wnested-externs \
--Wpointer-arith \
--Wshadow \
--Wsign-compare \
--Wstrict-prototypes \
--Wtype-limits \
--D_GNU_SOURCE=1
-"
-AC_SUBST([my_CFLAGS])
-
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([
Makefile