Commit c8338e84 authored by NIIBE Yutaka's avatar NIIBE Yutaka

Fix debian/patches/42_cflags_reproducible.patch.

Also support -ffile-prefix-map.
parent 8c96d422
Description: Reproducible build: filter CFLAGS's -fdebug-prefix-map
Description: Reproducible build: filter CFLAGS's -f.*-prefix-map
Author: NIIBE Yutaka <gniibe@fsij.org>
Last-Update: 2018-10-06
Last-Update: 2018-10-07
Index: gauche/configure.ac
===================================================================
......@@ -11,7 +11,7 @@ Index: gauche/configure.ac
dnl put the args to the configure in gauche-config script for later use.
dnl the use of ac_configure_args depends on autoconf 2.52.
-GAUCHE_CONFIGURE_ARGS=`echo "$ac_configure_args" | sed 's/@<:@\\"\`\$@:>@/\\\\&/g'`
+GAUCHE_CONFIGURE_ARGS=`echo "$ac_configure_args" | sed 's/@<:@\\"\`\$@:>@/\\\\&/g' 's/-fdebug-prefix-map=@<:@^ @:>@* //'`
+GAUCHE_CONFIGURE_ARGS=`echo "$ac_configure_args" | sed 's/@<:@\\"\`\$@:>@/\\\\&/g' 's/-f@<:@a-z@:>@*-prefix-map=@<:@^ @:>@* //'`
AC_SUBST(GAUCHE_CONFIGURE_ARGS)
dnl ==========================================================
......@@ -20,7 +20,7 @@ Index: gauche/configure.ac
dnl If the user overrides CFLAGS during configure, which is recorded.
dnl This information is used when configuring extensions.
-DEFAULT_CFLAGS="$CFLAGS"
+DEFAULT_CFLAGS="$(echo "$CFLAGS" | sed 's/-fdebug-prefix-map=@<:@^ @:>@* //')"
+DEFAULT_CFLAGS="$(echo "$CFLAGS" | sed 's/-f@<:@a-z@:>@*-prefix-map=@<:@^ @:>@* //')"
AC_SUBST(DEFAULT_CFLAGS)
dnl ===========================================================
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment