# HG changeset patch # User jwe # Date 831897234 0 # Node ID d5f574877f5913a2b07a46602ad08a6a2c0aeca7 # Parent 5049a300eee0b05405c94028893c2711f7fb067e [project @ 1996-05-12 10:31:32 by jwe] diff -r 5049a300eee0 -r d5f574877f59 aclocal.m4 --- a/aclocal.m4 Sun May 12 08:40:01 1996 +0000 +++ b/aclocal.m4 Sun May 12 10:33:54 1996 +0000 @@ -323,8 +323,10 @@ return (! forsub (s, &d, len)); #endif } -#if defind (sun) || defined (linux) +#if defind (sun) int MAIN_ () { return 0; } +#elif defined (linux) && defined (__ELF__) +int MAIN__ () { return 0; } #endif EOF changequote([, ]) diff -r 5049a300eee0 -r d5f574877f59 liboctave/sun-utils.cc --- a/liboctave/sun-utils.cc Sun May 12 08:40:01 1996 +0000 +++ b/liboctave/sun-utils.cc Sun May 12 10:33:54 1996 +0000 @@ -20,25 +20,29 @@ */ -#if defined (sun) || defined (linux) - #include // I think that this is really only needed if linking to Fortran -// compiled libraries on a Sun. It also seems to be needed on Linux -// systems with g77. It should never be called. +// compiled libraries on a Sun. It also seems to be needed on +// Linux/ELF systems with g77. It should never be called. extern "C" { +#if defined (sun) int MAIN_ (void) { assert (0); return 0; } +#elif defined (linux) && defined (__ELF__) + int MAIN__ (void) + { + assert (0); + return 0; + } +#endif } -#endif - /* ;;; Local Variables: *** ;;; mode: C++ ***