summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-18 19:48:24 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-19 01:57:21 +0100
commitb4b653a500199ab6d61318b0b0093567155089cd (patch)
treec1d100e0bf6cd2a90f4e227b30fd1959574801b3 /Makefile.am
parent3b097978c147d6e98f02e7b2d31e75a36e36338f (diff)
Remove custom stdint.h and rely on freestanding headers
GCC already provides this so we don't need to have our own. Message-Id: <Y5+02FVA6jf4GPgA@mars>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5eddead7..8870c7ac 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,8 +41,9 @@ AM_LDFLAGS =
# Compilation flags
#
+GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')
AM_CPPFLAGS += \
- -ffreestanding -nostdinc -imacros config.h
+ -ffreestanding -nostdinc -imacros config.h -I $(GCC_INSTALL)/include
AM_CPPFLAGS += \
-I$(systype) \