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.
This commit is contained in:
Jef Driesen 2019-12-15 22:24:16 +01:00
parent 03c8e350dd
commit ad297c1cc9

View File

@ -188,6 +188,7 @@ AX_APPEND_COMPILE_FLAGS([ \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wno-unused-parameter \
-fmacro-prefix-map='$(top_srcdir)/'= \
])
# Windows specific compiler options.