From d2befd712afbe810a57ad6875eedadb65a380c92 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 6 Jun 2022 04:28:30 +0300 Subject: [PATCH] Revert "Main: Automake.am: remove duplicate CFLAGS" This reverts commit c20b98073c59e0119d323363df7ad92795ef9bf2. --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index 65b4794..3befc5f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,6 +19,13 @@ if ENABLE_WERROR AM_CFLAGS += -Werror endif +# TODO: DRY (configure.ac) +if ENABLE_FREESTANDING +AM_CFLAGS += -nostdlib -ffreestanding -fno-pic -fno-stack-protector +else +AM_CFLAGS += -fpic +endif + ####### # all # #######