This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1 branch, required for bootstrap on alpha-*-openbsd
- To: Marc Espie <Marc dot Espie at liafa dot jussieu dot fr>
- Subject: Re: egcs-1.1 branch, required for bootstrap on alpha-*-openbsd
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Sat, 27 Feb 1999 19:50:09 -0700
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990227152933.06688@liafa1.liafa.jussieu.fr>you write:
> This problem has already been fixed more satisfactorily and extensively
> in the main stream. This is just a simple kludge for 1.1.2, which allows
> building on openbsd-alpha.
>
> Here is what's going on: OpenBSD does have mktemp, mkstemp, and mkstemps.
> However, all three functions rely on an internal _gettemp function.
> In order not to expose that name, all three functions are defined in the
> same compilation unit... This is not a problem on machines with dynamic
> libraries. On machines where this is not supported yet, the linker gets
> atrociously confused as it already has one valid definition of mkstemps
> (in the libiberty sources) and is forced to include another (since
> choose-temp does need mktemp to work, and hence pulls mkstemps along for
> the ride).
>
>
> Sat Feb 27 14:55:51 CET 1999 Marc Espie <espie@openbsd.org>
> * config/t-openbsd: avoid problems with the name mkstemps
> on machines without dynamic library support.
I've added this patch. However, I'm still not convinced that adding OpenBSD
support to this release was a good idea. The patch itself is rather
disgusting.
jeff