/[gentoo-x86]/dev-libs/libf2c/files/libf2c-20110801-main.patch
Gentoo

Contents of /dev-libs/libf2c/files/libf2c-20110801-main.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 4 07:16:32 2012 UTC (2 years ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +9 -2 lines
Clean patch

(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)

1 Add weak alias for MAIN__
2
3 https://bugs.gentoo.org/show_bug.cgi?id=421975
4 https://bugs.gentoo.org/show_bug.cgi?id=433782
5 https://groups.google.com/forum/#!msg/comp.os.linux.development.apps/41siJKfcJ78/iIcRfZ4y9G8J
6
7 Patch written by Chris Reffett <creffett@gentoo.org>
8 and Kacper Kowalik <xarthisius@gentoo.org>
9 --- a/makefile.u
10 +++ b/makefile.u
11 @@ -27,7 +27,7 @@
12 ## If your system does not have the x86_64-pc-linux-gnu-ld command, comment out
13 ## or remove both the x86_64-pc-linux-gnu-ld and mv lines above.
14
15 -MISC = f77vers.o i77vers.o main.o s_rnge.o abort_.o exit_.o getarg_.o iargc_.o\
16 +MISC = f77vers.o i77vers.o main.o main_foo.o s_rnge.o abort_.o exit_.o getarg_.o iargc_.o\
17 getenv_.o signal_.o s_stop.o s_paus.o system_.o cabs.o ctype.o\
18 derf_.o derfc_.o erf_.o erfc_.o sig_die.o uninit.o
19 POW = pow_ci.o pow_dd.o pow_di.o pow_hh.o pow_ii.o pow_ri.o pow_zi.o pow_zz.o
20 @@ -206,7 +206,7 @@
21 i77vers.c i_abs.c i_dim.c i_dnnt.c i_indx.c i_len.c i_mod.c \
22 i_nint.c i_sign.c iargc_.c iio.c ilnw.c inquire.c l_ge.c l_gt.c \
23 l_le.c l_lt.c lbitbits.c lbitshft.c libf2c.lbc libf2c.sy lio.h \
24 - lread.c lwrite.c main.c makefile.sy makefile.u makefile.vc \
25 + lread.c lwrite.c main.c main_foo.c makefile.sy makefile.u makefile.vc \
26 makefile.wat math.hvc mkfile.plan9 open.c pow_ci.c pow_dd.c \
27 pow_di.c pow_hh.c pow_ii.c pow_qq.c pow_ri.c pow_zi.c pow_zz.c \
28 qbitbits.c qbitshft.c r_abs.c r_acos.c r_asin.c r_atan.c r_atn2.c \
29 --- /dev/null
30 +++ b/main_foo.c
31 @@ -0,0 +1,9 @@
32 +#include <stdio.h>
33 +#include <stdlib.h>
34 +
35 +void missing_MAIN__ (void)
36 +{
37 + fprintf(stderr, "The Fortran main program is missing.\n");
38 + abort();
39 +}
40 +void MAIN__ (void) __attribute__ ((weak, alias("missing_MAIN__")));

  ViewVC Help
Powered by ViewVC 1.1.20