Revert "Main: Automake.am: remove duplicate CFLAGS"

This reverts commit c20b98073c.
This commit is contained in:
Alex Kotov 2022-06-06 04:28:30 +03:00
parent 134caff449
commit d2befd712a
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 0 deletions

View File

@ -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 #
#######