diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-08-18 13:06:36 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-08-18 22:32:44 +0200 |
commit | 1127470a3ebf507981af5d2864bfe57ee67e868a (patch) | |
tree | ddc7c4eb260bdb5cc677d7af958618f5a779d0ae /ChangeLog | |
parent | 07737584e73714eff3481fcf17f9f0331c8a5b88 (diff) |
Check if gcc complains about __attribute__ (visibility(..))
If so, define attribute_hidden to be empty. Also, use attribute_hidden
in all places where we hide symbols. If this attribute is missing, it
simply means that we cannot hide private symbols in the binary using
attributes. This disables some optimizations and may increase the risk
of symbol name clashes with other libraries, but is not fatal.
However, we still employ linker version scripts to explicitly define
the exported symbols. This serves much of the same purpose. Also, as
all our symbols are prefixed with the library name, and "__" for
private ones, the chance of clashes is low anyway.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2017-04-27 Ulf Hermann <ulf.hermann@qt.io> + * configure.ac: Check if the compiler supports + __attribute__((visibility(...))). + +2017-04-27 Ulf Hermann <ulf.hermann@qt.io> + * configure.ac: Check if -fPIC, -fPIE, -Wl,-z,defs, and -Wl,-z,relro are supported by the compiler. |