Article View: news.software.nntp
Article #19860Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris
From: Frank 'Scruffy' Miller
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
37 lines
1806 bytes
1806 bytes
In article <5rnpbu$hgq@solaris.cna.tek.com>,
Frank 'Scruffy' Miller <frankm@solaris.cna.tek.com> wrote:
>Was doing an upgrade from 1.5.1 to 1.5.1sec with standard working hours
>to 1am when I ran into compile errors for gcc 2.7.2.2 for libsnprintf.a
>for Solaris 2.5.1. Has anyone the gcc compile flags out?
Okay, was able to spend 15 this afternoon on this:
With gcc an Solris 2.5* on 1.5.1sec I used for SNPRINTF_CFLAGS:
-Dsun -D__svr4__
I disagree with -DBad_float_h as recommended because float.h contains:
DBL_DIG, DBL_MAX_10_EXP, DBL_MAX_EXP,
FLT_RADIX, FLT_ROUNDS, and DBL_MAX.
Also, in vfprintf <math.h> is not needed as things are defined in
the local xstdio.h. So I changed vfprintf.c to only include
<math.h> if it is not a sun:
#ifdef FLOATING_POINT
#ifndef sun
#include <math.h>
#endif /*sun*/
#include "floatio.h"
On to install, other issues are pressing!
--
----------------------------------------------------------------
Frank Miller | frankm@master.cna.tek.com
Technical Computing Group Leader | "Laugh while you can,
Tektronix CNA Division | monkey-boy!!!!"
Technical Details
Message-ID:
<5rold8$rrs@solaris.cna.tek.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5rnpbu$hgq@solaris.cna.tek.com>Show Full Headers
Complete Article Headers
Message-ID: <5rold8$rrs@solaris.cna.tek.com> Subject: Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris Date: Wed, 30 Jul 1997 00:00:00 +0000 From: frankm@solaris.cna.tek.com (Frank 'Scruffy' Miller) References: <5rnpbu$hgq@solaris.cna.tek.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 260754317 Distribution: inet Organization: Tektronix, Inc., Redmond, OR, USA Newsgroups: news.software.nntp