Dear Suzuki san,

This is not an urgent issue.
I can use freetype-2.9 compiled with cc, or 2.9.1 compiled with gcc.

Regards,

--- Kiyoshi



----- Original Message -----
>From: suzuki toshiya <[email protected]>
>To: Alexei Podtelezhnikov <[email protected]> 
>Cc: Kiyoshi KANAZAWA <[email protected]>; "[email protected]" 
><[email protected]>
>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.html
>does 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
>> 
>
>
>
>
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to