This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use -frounding-math for math testsuite
On 05/02/2012 05:21 PM, Andreas Schwab wrote:
Andreas Jaeger<aj@suse.de> writes:
Right now I don't see a way to set these flags just for the libraries.
We could add them as global settings for all of glibc if we want - or
somebody needs to tweak the makefiles to use different CFLAGS for library and
tests.
There's a $(CFLAGS-$(lib)) setting for each library.
this works for libm with math/Makefile having
"CFLAGS-libm=-frounding-math" but I cannot specify this for libc at all
AFAIK.
I expect that we only need it for libc and libm.
We could add this for specific directories but this is all difficult.
Alternative would be to set it to the global compiler options like
+merge-constants - and thus changing everything. Would this be ok or is
there a better way?
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126