compiling glib20 in ports with gcc v4.6.2

Koop Mast kwm at rainbow-runner.nl
Fri Jul 22 09:58:52 UTC 2011


On Fri, 2011-07-22 at 01:31 -0700, Sameer R. Manek wrote:
> While attempting to build glib20 (2.26.1) from ports using gcc v4.6.2, I
> encountered the error 
> 

Well first glib's configure check if the compiler/linker supports this
flag "checking for -Bsymbolic-functions linker flag... yes".

I also test build glib20 with gcc46 after your report and it works fine.
However I believe that if you use a gcc version from ports it should use
also the linker from the binutils package, not the linker from base.

-Koop

> 
> /usr/bin/ld: unrecognized option '-Bsymbolic-functions'
> 
>  
> 
> I'm not sure if the syntax has changed from gcc 4.2.2. to gcc 4.6.2, but the
> following Makefiles need to be adjust for it to properly compile.
> 
>  
> 
> /usr/ports/devel/glib20/work/glib-2.26.1/glib/Makefile
> 
> /usr/ports/devel/glib20/work/glib-2.26.1/gmodule/Makefile
> 
> /usr/ports/devel/glib20/work/glib-2.26.1/gthread/Makefile
> 
> /usr/ports/devel/glib20/work/glib-2.26.1/gobject/Makefile
> 
> /usr/ports/devel/glib20/work/glib-2.26.1/gio/Makefile
> 
>  
> 
> 
> 
> Change the line: 
> 
> GLIB_LINK_FLAGS = -Wl,-Bsymbolic-functions
> 
> to: 
> 
> GLIB_LINK_FLAGS = -Wl,-Bsymbolic
> 
>  
> 
> Thanks
> 
> Sameer
> 
>  
> 
> Relevant versions:
> 
> 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Jul 21 21:35:24 PDT
> 
> gcc version 4.6.2 20110715 (prerelease) (FreeBSD Ports Collection)
> 
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"




More information about the freebsd-gnome mailing list