----- Original Message -----
From: suzuki toshiya <address@hidden>
To:
Alexei Podtelezhnikov <address@hidden>
Cc: Kiyoshi KANAZAWA <address@hidden>; "address@hidden" <address@hidden>
Date: 2018/5/3, Thu 21:40
Subject: Re: [ft-devel] [freetype-2.9.1] FT_Init_FreeType is missing with cc on Solaris x64
Dear Alexei,
Yes, Oracle cc accepts it, as far as I can read from the online help.
And, at least, during the compilation (from *.c to *.o), the control
by __attribute__((visibility("default"))) works well. The exported symbols
are exposed to global.
But when Oracle cc links the object files into shared library, with
mapfile (listing the symbols to be exposed), strangely, all symbols
are
hidden.
Also, I should note that (maybe) same mapfile was used in freetype-2.9,
and the symbols were exposed correctly.
Thus, the possibility I can imagine is; a combination of -fvisibility=hidden
and mapfile can cause unexpected behaviour? The examples using mapfile
at
https://docs.oracle.com/cd/E19253-01/819-0391/appendixb-45356/index.htmldoes not use -fvisibility options.
--
Hmm, I would try to make a patch excluding "-fvisibility" option in
linking, although it is used in the compilation.
Kanazawa-san, I hope this issue is not urgent issue something like
a forced order from your boss like "hey Kanazawa, resolve this issue
by next Monday".
Regards,
mpsuzuki
Alexei Podtelezhnikov wrote:
> Dear Kanazawa-san and Tochiya-san,
>
> I heard rumors that Solaris
compiler accepts --fvisibility=hidden, but
> does it define __GNUC__ >= 4?
> This would be necessary to get __attribute__(( visibility( "default" )
> )). It might also require different attribute. Please advise.
>
> Alexei
>