Replace "Try to fix Solaris build" with compatibility compiler flags
[users/heiko/exim.git] / src / OS / Makefile-SunOS5
index 1afef4d2351e26d4e1b9f4666799eb88d1e9ffc4..557c031fd41011424ee13253b9a2cf5d08d4bee0 100644 (file)
@@ -1,16 +1,12 @@
-# $Cambridge: exim/src/OS/Makefile-SunOS5,v 1.1 2004/10/06 15:07:39 ph10 Exp $
-
 # Exim: OS-specific make file for SunOS5
 
 # Exim: OS-specific make file for SunOS5
 
-CFLAGS=-O
-
 HAVE_ICONV=yes
 
 BASENAME_COMMAND=look_for_it
 HOSTNAME_COMMAND=look_for_it
 
 RANLIB=@true
 HAVE_ICONV=yes
 
 BASENAME_COMMAND=look_for_it
 HOSTNAME_COMMAND=look_for_it
 
 RANLIB=@true
-LIBS=-lsocket -lnsl -lkstat
+LIBS=-lsocket -lnsl -lkstat -lm
 LIBRESOLV=-lresolv
 
 EXIWHAT_MULTIKILL_CMD=pkill
 LIBRESOLV=-lresolv
 
 EXIWHAT_MULTIKILL_CMD=pkill
@@ -21,4 +17,7 @@ XINCLUDE=-I$(X11)/include
 XLFLAGS=-L$(X11)/lib -R$(X11)/lib
 X11LIB=$(X11)/lib
 
 XLFLAGS=-L$(X11)/lib -R$(X11)/lib
 X11LIB=$(X11)/lib
 
+OS_C_INCLUDES=setenv.c
+CFLAGS += -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__
+
 # End
 # End