--- a/libInit.cc Wed Sep 08 19:40:37 1999 +0200
+++ b/libInit.cc Thu Sep 09 18:06:22 1999 +0200
@@ -4,12 +4,23 @@
*/
#define __INDIRECTVMINITCALLS__
#include <stc.h>
+#define INIT_TEXT_SECT /* as nothing */
#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
-#endif /* WIN32 */
-_libtool2_Init(pass, __pRT__, snd)
+#else /* not WIN32 */
+# if defined(__GNUC__)
+# if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2
+# undef INIT_TEXT_SECT
+# define INIT_TEXT_SECT __attribute__((section(".stxitext")))
+# endif
+# endif /* not GNUC */
+#endif /* not WIN32 */
+#ifdef INIT_TEXT_SECT
+extern void _libtool2_Init() INIT_TEXT_SECT;
+#endif
+void _libtool2_Init(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
-__BEGIN_PACKAGE__("libtool2", _libtool2_Init);
+__BEGIN_PACKAGE2__("libtool2", _libtool2_Init, "stx:libtool2");
_ColorMenu_Init(pass,__pRT__,snd);
_FontMenu_Init(pass,__pRT__,snd);
_MenuEditor_Init(pass,__pRT__,snd);