summaryrefslogtreecommitdiff
path: root/gnu/egcs/libf2c/libF77
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-05-30 20:46:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-05-30 20:46:06 +0000
commitc6ac11cd4eeba4466a70ee3767781c8abdf9669d (patch)
treecbe4f9ec692ca82e5c5e8c5cfed30a58c23310d9 /gnu/egcs/libf2c/libF77
parent5f817ce30c27eeba7fc0b8982d24c0bab3136184 (diff)
separate main.c into a separate libfrtbegin.a.
Handle that in g77spec. Taken from gcc 3.1 (apart from the Makefile.bsd-wrapper changes). This allows one to link fortran code with other languages on ELF platforms: putting main.c in libg2c.so would make libg2c insist it got a MAIN__ symbol. Okay fgs@, pval@.
Diffstat (limited to 'gnu/egcs/libf2c/libF77')
-rw-r--r--gnu/egcs/libf2c/libF77/Makefile.bsd-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/egcs/libf2c/libF77/Makefile.bsd-wrapper b/gnu/egcs/libf2c/libF77/Makefile.bsd-wrapper
new file mode 100644
index 00000000000..daae8d76b62
--- /dev/null
+++ b/gnu/egcs/libf2c/libF77/Makefile.bsd-wrapper
@@ -0,0 +1,8 @@
+# $OpenBSD: Makefile.bsd-wrapper,v 1.1 2002/05/30 20:46:05 espie Exp $
+
+# This needs to be separate from libg2c to allow for mixed
+# Fortran/other language programs.
+LIB=frtbegin
+SRCS=main.c
+
+.include <bsd.lib.mk>