openbsd-ports/lang/g77-old/patches/patch-gcc_f_lang-specs_h
espie a12b97f54d initial attempt at g77 2.95.3 port
not really tested completely, but necessary to un-brick old arches ports...
2010-05-27 08:36:21 +00:00

22 lines
1.2 KiB
Plaintext

$OpenBSD: patch-gcc_f_lang-specs_h,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
--- gcc/f/lang-specs.h.orig Tue May 25 10:28:17 2010
+++ gcc/f/lang-specs.h Tue May 25 10:33:40 2010
@@ -35,7 +35,7 @@ the Free Software Foundation, 59 Temple Place - Suite
Sun f77, at least) so you test `__unix' rather than `unix'.
-D_LANGUAGE_FORTRAN is used by some compilers like SGI and
might as well be in there. */
- {"cpp0 -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
+ {"cc1 -E -traditional-cpp %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
%{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2}\
@@ -44,7 +44,7 @@ the Free Software Foundation, 59 Temple Place - Suite
%c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\
%{ffast-math:-D__FAST_MATH__}\
%{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
- %i %{!M:%{!MM:%{!E:%{!pipe:%g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
+ %i %{!M:%{!MM:%{!E:%{!pipe:-o %g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
"%{!M:%{!MM:%{!E:f771 %{!pipe:%g.i} %(f771) \
%{!Q:-quiet} -dumpbase %b.F %{d*} %{m*} %{a*}\
%{g*} %{O*} %{W*} %{w} %{pedantic*} \