[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing for compiler capabilities
From: |
Ralf Wildenhues |
Subject: |
Re: Testing for compiler capabilities |
Date: |
Tue, 22 Aug 2006 21:11:32 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hello Jan, David,
* David Fang wrote on Tue, Aug 22, 2006 at 08:11:28PM CEST:
>
> Then the test is even simpler: compile an empty or trivial source file
> with the same m4 test and replace -Werror with -fvisibility=hidden.
> This is how I test for individual command-line options, where no
> sophisticated diagnosis of the outcome is required (just success/fail).
> HTH.
Then you could also just use the visibility module from gnulib:
http://cvs.savannah.gnu.org/viewcvs/*checkout*/gnulib/gnulib/MODULES.html?rev=HEAD&content-type=text/html#module=visibility
Cheers,
Ralf