[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: revise visibility attributes usage in autotools and cmake
From: |
Ozkan Sezer |
Subject: |
[PATCH] build: revise visibility attributes usage in autotools and cmake |
Date: |
Wed, 4 Jun 2025 08:28:21 +0300 |
* cmake: set C_VISIBILITY_PRESET to hidden for non-windows only.
windows handles exports with DLL_EXPORT defined, and old mingw
toolchains emit a lot of warnings about visibility attributes
not being supported in this configuration.
* autotools: revise visibility attributes checks by compiling a
better test program with `-Werror` in CFLAGS, so that warnings
will correctly indicate unsupported configurations.
Motivation for this patch was annoying warnings from my mingw
toolchains with gcc 7.5 and gcc 4.5
P.S.: I don't know how to do this in meson, and it's probably not
worth it.
--
O.S.
0001-build-revise-visibility-attributes-usage-in-autotool.patch
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] build: revise visibility attributes usage in autotools and cmake,
Ozkan Sezer <=