mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
guile-snarf: skip -g* arguments to avoid build failure
* libguile/guile-snarf.in: skip -g* arguments to avoid failure on -ggdb3. Bug: https://bugs.gentoo.org/608190 Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25803 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
parent
e0933b5636
commit
f775ab3654
1 changed files with 14 additions and 2 deletions
|
@ -95,10 +95,22 @@ if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
|
|||
|
||||
trap "rm -rf $tempdir" 0 1 2 15
|
||||
|
||||
# filter out -g* flags from commandline
|
||||
# as some flags like -ggdb3 cause CPP
|
||||
|
||||
cpp_args=""
|
||||
for arg in "$@"
|
||||
do
|
||||
case "$arg" in
|
||||
-g*) ;; # skip debug flag
|
||||
*) cpp_args="$cpp_args $arg" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ ! "$outfile" = "-" ] ; then
|
||||
modern_snarf "$@" > $outfile
|
||||
modern_snarf $cpp_args > $outfile
|
||||
else
|
||||
modern_snarf "$@"
|
||||
modern_snarf $cpp_args
|
||||
fi
|
||||
|
||||
# zonk outfile if errors occurred
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue