1/* Definitions of target machine for GNU compiler, for SunOS 4.x 2 Copyright (C) 1994, 1999 Free Software Foundation, Inc. 3 4This file is part of GNU CC. 5 6GNU CC is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2, or (at your option) 9any later version. 10 11GNU CC is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with GNU CC; see the file COPYING. If not, write to 18the Free Software Foundation, 59 Temple Place - Suite 330, 19Boston, MA 02111-1307, USA. */ 20 21#undef SUNOS4_SHARED_LIBRARIES 22#define SUNOS4_SHARED_LIBRARIES 1 23 24#undef CPP_PREDEFINES 25#define CPP_PREDEFINES "-Dsparc -Dsun -Dunix -Asystem=unix -Asystem=bsd" 26 27#define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}}" 28 29/* Provide required defaults for linker -e and -d switches. */ 30 31#define LINK_SPEC \ 32 "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp} %{static:-Bstatic} \ 33 %{assert*} %{shared:%{!mimpure-text:-assert pure-text}}" 34 35/* Use N_BINCL stabs. */ 36 37#define DBX_USE_BINCL 38 39/* The Sun as doesn't like unaligned data. */ 40#define DWARF2_UNWIND_INFO 0 41 42/* SunOS has on_exit instead of atexit. */ 43/* The man page says it returns int. */ 44#ifdef IN_LIBGCC2 45extern int on_exit PARAMS ((void *, void *)); 46#endif 47#define ON_EXIT(FUNC) on_exit ((FUNC), 0) 48#define NEED_ATEXIT 49