diff src/s/sco5.h @ 253:157b30c96d03 r20-5b25

Import from CVS: tag r20-5b25
author cvs
date Mon, 13 Aug 2007 10:20:27 +0200
parents 2d532a89d707
children c5d627a313b1
line wrap: on
line diff
--- a/src/s/sco5.h	Mon Aug 13 10:20:01 2007 +0200
+++ b/src/s/sco5.h	Mon Aug 13 10:20:27 2007 +0200
@@ -134,6 +134,14 @@
 #ifdef _SCO_ELF
 #undef COFF /* coz we're NOT */
 #define UNEXEC "unexelf.o"
+#if defined (__GNUC_MINOR__)
+#if ((__GNUC__ == 2) && (__GNUC_MINOR__ > 7)) || ((__GNUC__ > 2))
+#define LIB_GCC "-lgcc"
+#else
 #define LIB_GCC "-lgcc-elf"
 #endif
+#else /* __GNUC_MINOR__ is undefined */
+#define LIB_GCC "-lgcc-elf"
+#endif
+#endif