From owner-freebsd-gnome@FreeBSD.ORG Fri Jul 22 09:58:52 2011 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D289A106566B for ; Fri, 22 Jul 2011 09:58:52 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by mx1.freebsd.org (Postfix) with ESMTP id 3C1DB8FC12 for ; Fri, 22 Jul 2011 09:58:51 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep15-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110722095850.UATF196.viefep15-int.chello.at@edge05.upcmail.net>; Fri, 22 Jul 2011 11:58:50 +0200 Received: from [192.168.0.126] ([77.250.114.160]) by edge05.upcmail.net with edge id Axyo1h01t3TiT9105xypuP; Fri, 22 Jul 2011 11:58:50 +0200 X-SourceIP: 77.250.114.160 From: Koop Mast To: "Sameer R. Manek" In-Reply-To: <000001cc4849$d366e490$7a34adb0$@ghur.net> References: <000001cc4849$d366e490$7a34adb0$@ghur.net> Content-Type: text/plain; charset="us-ascii" Date: Fri, 22 Jul 2011 11:58:39 +0200 Message-ID: <1311328719.2003.5.camel@crashalot.rainbow-runner.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=JvXQbuMnWGQeb488dJ7w43Du7THgE+O7ieb9U20/rjk= c=1 sm=0 a=mwc8wdRwTkIA:10 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=Fp8LlHXv1WRGBmj25hoA:9 a=9tQ9Yz0TqipkVs_n5JoA:7 a=CjuIK1q_8ugA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: gnome@FreeBSD.org Subject: Re: compiling glib20 in ports with gcc v4.6.2 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 09:58:52 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org"