[Gambas-devel] Check for -fvisibility=hidden
ron
ronstk at ...124...
Thu Mar 9 05:22:14 CET 2006
On Wednesday 08 March 2006 23:19, Laurent Carlier wrote:
> Le Mercredi 8 Mars 2006 23:01, Benoit Minisini a écrit :
> > On Saturday 04 March 2006 18:22, Laurent Carlier wrote:
> > > Test the following acinclude.m4, it inlude a test for -fvisibility=hidden
> > > flag. It's a pretty quick workaround and surely need work and cleanup.
> > >
> > > Founf here :
> > > http://autoconf-archive.cryp.to/ax_cflags_gcc_option.html
> > >
> > > and attached the modified acinclude.m4
> > >
> > > regards,
> >
> > Thanks. I merged it as is. I hope you didn't make a mistake :-)
> >
> > Regards,
>
> Ok, i've tried with gcc-3.3 and it doesn't enable the visibility flag.
>
> Regards,
>
I did a try also.
With fresh untar the archive and replaced the acinclude.m4 with the new one.
for me bad luck with SuSE 9.2 and gcc version 3.3.4 (pre 3.3.5 20040809)
This afternoon i did install on a second box and did the patch on line194/195.
With same suse version the ./reconf and ./reconf-all did not work.
After a make distclean, I can't remember it did work or not, I restart again
with fresh untar and did the patch on line194/195. That is working now :)
Report with the updated acinclude.m4 from Laurent Carlier:
make[4]: Entering directory `/mnt/hda6/_OldUsers/ron/src/a/gambas2-1.9.26/main/gbx'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -DGBX_INFO -pipe -Wall -fno-strict-aliasing -Wno-unused-value -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF ".deps/gb_la-gbx_c_class.Tpo" -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c; \
then mv -f ".deps/gb_la-gbx_c_class.Tpo" ".deps/gb_la-gbx_c_class.Plo"; else rm -f ".deps/gb_la-gbx_c_class.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -DGBX_INFO -pipe -Wall -fno-strict-aliasing -Wno-unused-value -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c gbx_c_class.c -fPIC -DPIC -o .libs/gb_la-gbx_c_class.o
cc1: error: unrecognized option `-fvisibility=hidden'
make[4]: *** [gb_la-gbx_c_class.lo] Error 1
---
Greets Ron
More information about the Devel
mailing list