From ad297c1cc90a309ec58797c6de23c48235278424 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sun, 15 Dec 2019 22:24:16 +0100 Subject: [PATCH] Strip the source directory from file names Use the GCC 8 -fmacro-prefix-map option to strip the source directory and change the __FILE__ macro into a relative path. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 2d32a35..51592b8 100644 --- a/configure.ac +++ b/configure.ac @@ -188,6 +188,7 @@ AX_APPEND_COMPILE_FLAGS([ \ -Wmissing-prototypes \ -Wmissing-declarations \ -Wno-unused-parameter \ + -fmacro-prefix-map='$(top_srcdir)/'= \ ]) # Windows specific compiler options.