From b9c88b6c2d291ddc8011c4b3d18e28108cb5b937 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Sun, 15 Apr 2001 06:42:38 +0000 Subject: Relevant BUGIDs: 415412 Purpose of commit: support Commit summary: --------------- Some solaris support for gcc options that appear to work. --- configure.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 81e92969..3e7287ff 100644 --- a/configure.in +++ b/configure.in @@ -265,9 +265,17 @@ GCC_WARNINGS="-Wall -Wwrite-strings \ -Wnested-externs -Winline -Wshadow" if test "$GCC" = yes; then -### -### Non-Linux needs attention on per-OS basis - OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic" + OS_CFLAGS="" +### May need per-OS attention +### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris. + case $OS in + linux) + OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic" + ;; + sunos) + OS_CFLAGS="-ansi -pedantic" + ;; + esac WARNINGS="$GCC_WARNINGS" PIC="-fPIC" #can/should we use LD=gcc ??? -- cgit v1.2.3