freetype/builds
Alan Coopersmith 9e345c9117 Further fix to visibility flag testing with Solaris Studio compilers.
AC_COMPILE_IFELSE only tries to compile a `*.c' to a `*.o'.  The
Solaris Studio 12.1 through 12.5 compilers see the
`-fvisibility=hidden' flag, but ignore it with a warning of:

  cc: Warning: Option -fvisibility=hidden passed to ld,
               if ld is invoked, ignored otherwise

AC_LINK_IFELSE does the compile and then tries to link the result,
at which point the Solaris linker will issue an error:

  ld: fatal: option '-fvisibility=hidden' is incompatible with
      building a dynamic executable

If we don't use AC_LINK_IFELSE to catch the error, then configure
will fail further tests which attempt to link, such as those testing
dependencies like `libbz2'.

Also, don't try adding `-fvisibility' if we have already added
`-xldscope', just use one of them, since Sun Studio 12 and earlier
compilers only issue a warning, and don't try passing through to the
linker to generate an error, so AC_LINK_IFELSE doesn't catch them.

Tested on Solaris 11.4 beta with compiler versions:

  Sun Studio 8 (Sun C 5.5)
  Sun Studio 10 (Sun C 5.7)
  Sun Studio 11 (Sun C 5.8)
  Sun Studio 12 (Sun C 5.9)
  Sun Studio 12.1 (Sun C 5.10)
  Oracle Solaris Studio 12.2 (Sun C 5.11)
  Oracle Solaris Studio 12.3 (Sun C 5.12)
  Oracle Solaris Studio 12.4 (Sun C 5.13)
  Oracle Developer Studio 12.5 (Sun C 5.14)
  Oracle Developer Studio 12.6 (Sun C 5.15)
  gcc 5.5.0
  gcc 7.3.0

and verified the libfreetype.so.6 generated by each of those
compilers exported the same set of symbols.

* builds/unix/configure.raw: Implement it.
2018-05-10 10:13:18 +02:00
..
amiga Remove ftlcdfil.c' and ftfntfmt.c' from build files (#53415). 2018-03-22 06:00:55 +01:00
ansi Update copyright year. 2018-01-02 09:33:57 +01:00
atari Don't use macro names that contain `__' [1/2]. 2016-01-12 21:37:13 +01:00
beos Update copyright year. 2018-01-02 09:33:57 +01:00
cmake Modernize CMake build. 2018-04-10 22:31:10 +01:00
compiler Update copyright year. 2018-01-02 09:33:57 +01:00
dos [build] Suppress configure's `nothing to be done' message. 2018-05-07 08:54:34 +02:00
mac Remove ftlcdfil.c' and ftfntfmt.c' from build files (#53415). 2018-03-22 06:00:55 +01:00
os2 [build] Suppress configure's `nothing to be done' message. 2018-05-07 08:54:34 +02:00
symbian Remove ftlcdfil.c' and ftfntfmt.c' from build files (#53415). 2018-03-22 06:00:55 +01:00
unix Further fix to visibility flag testing with Solaris Studio compilers. 2018-05-10 10:13:18 +02:00
vms Support symbol visibility features of Sun / Oracle C compilers. 2018-05-04 12:55:48 +09:00
wince * Version 2.9.1 released. 2018-05-01 20:37:24 +02:00
windows [build] Suppress configure's `nothing to be done' message. 2018-05-07 08:54:34 +02:00
detect.mk [build] Use `info' function of make 3.81. 2018-04-15 16:27:10 -04:00
exports.mk Update copyright year. 2018-01-02 09:33:57 +01:00
freetype.mk [unix] Call libtool to clean up. 2018-01-21 14:29:58 -05:00
link_dos.mk Update copyright year. 2018-01-02 09:33:57 +01:00
link_std.mk Update copyright year. 2018-01-02 09:33:57 +01:00
modules.mk [build] Use `info' function of make 3.81. 2018-04-15 16:27:10 -04:00
toplevel.mk * builds/toplevel.mk (work): Use $(SEP). 2018-04-01 13:24:59 +02:00