summaryrefslogtreecommitdiff
path: root/devel/libf2c/patches/patch-ak
blob: 2f2e2375ad33b7206b28b461418fed874b622b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ak,v 1.1 2009/12/29 18:12:44 asau Exp $

Make MAIN__ weak in order to allow non-Fortran programs to use the library.

--- main.c.orig	2008-04-06 06:42:46.000000000 +0400
+++ main.c	2009-12-29 18:18:21.000000000 +0300
@@ -49,6 +49,7 @@
 #define Int /* int */
 #else
 extern void f_init(void), sig_die(const char*, int);
+#pragma weak MAIN__
 extern int MAIN__(void);
 #define Int int
 #endif