Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 17:15:44 +0200
From:      Stanislav Grozev <tacho@factline.com>
To:        freebsd-current@freebsd.org
Cc:        "Marc G. Fournier" <scrappy@hub.org>
Subject:   Re: GCC3.1 internal compiler error when compiling XFree86-4-libraries
Message-ID:  <20020603151544.GB6796@meerkat.dungeon>
In-Reply-To: <20020603150623.GA6796@meerkat.dungeon>
References:  <20020603125433.GA5356@meerkat.dungeon> <20020603114429.I2522-100000@mail1.hub.org> <20020603150623.GA6796@meerkat.dungeon>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 03, 2002 at 05:06:23PM +0200, Stanislav Grozev wrote:
> On Mon, Jun 03, 2002 at 11:44:43AM -0300, Marc G. Fournier wrote:
> > 
> > stupid question, but what is the fix for the #pragma weak issue? :(
> 
> you replace 
> 	#pragma weak foo = bar
> with either
> 	#pragma weak foo = "bar" /* this is easier */
> or
> 	if __GNUC__ >= 3

err, i meant #if, not if. :-) mondays...

> 		int foo() __attribute__ ((weak, alias ("bar")));
> 	#endif /* __GNUC__ */
> .
> :-)

-tacho

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020603151544.GB6796>