Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 585630 | Differences between
and this patch

Collapse All | Expand All

(-)sam2p-0.49.2/ccdep.pl (-2 / +2 lines)
Lines 138-144 Link Here
138
my @DS=find_ds();
138
my @DS=find_ds();
139
my @DSQ=map{shq$_}@DS;
139
my @DSQ=map{shq$_}@DS;
140
my $DIAG=" -fno-diagnostics-show-caret";
140
my $DIAG=" -fno-diagnostics-show-caret";
141
my $Q="$GCCP -DOBJDEP$DIAG -M -MG -E 2>&1 @DSQ";
141
my $Q="$GCCP -DOBJDEP$DIAG -std=c++98 -M -MG -E 2>&1 @DSQ";
142
my $R=backtick($Q);
142
my $R=backtick($Q);
143
if ($R=~/\berror: .*-fno-diagnostics-show-caret\b/) {
143
if ($R=~/\berror: .*-fno-diagnostics-show-caret\b/) {
144
  # gcc-4.6 and earlier don't have this flag, and they fail.
144
  # gcc-4.6 and earlier don't have this flag, and they fail.
Lines 150-156 Link Here
150
if ($R!~/: warning: #warning\b/) {
150
if ($R!~/: warning: #warning\b/) {
151
  # config2.h:314:4: warning: #warning REQUIRES: c_lgcc3.o
151
  # config2.h:314:4: warning: #warning REQUIRES: c_lgcc3.o
152
  # Dat: g++-3.3 ignores #warning with -M -MG -E
152
  # Dat: g++-3.3 ignores #warning with -M -MG -E
153
  $R.="\n".backtick("$GCCP -DOBJDEP$DIAG -E 2>&1 >/dev/null @DSQ");
153
  $R.="\n".backtick("$GCCP -DOBJDEP$DIAG -std=c++98 -E 2>&1 >/dev/null @DSQ");
154
}
154
}
155
155
156
## die $R;
156
## die $R;

Return to bug 585630