Subject: Re: qemu under NetBSD/MacPPC [PATCH]
To: None <tech-pkg@netbsd.org>
From: Luciano R. Furtado <lrfurtado@yahoo.com.br>
List: tech-pkg
Date: 04/15/2006 22:00:37
Luciano R. Furtado wrote:
> Hubert Feyrer wrote:
>
>> On Fri, 14 Apr 2006, Luciano Rodrigues Furtado wrote:
>>
>>> + !strstart(sym_name, "bswap64", NULL) && /* HF
>>> hack */
>>
>>
>>
>> Why does that have my name on it?
>>
>>
>> - Hubert
>>
> I added my changes to patch file that was on pkgsrc, your name was on
> that file, sorry for my lazzyness, maybe I should have posted only my
> changes instead of whole patch file I have on my local pkgsrc tree.
>
>
To avoid confusion the part that I changed on those files was:
--- configure.orig 2005-12-19 22:51:53.000000000 +0000
+++ configure
@@ -41,7 +41,7 @@ case "$cpu" in
alpha)
cpu="alpha"
;;
- "Power Macintosh"|ppc|ppc64)
+ "Power Macintosh"|ppc|ppc64|macppc)
cpu="powerpc"
;;
mips)
--- dyngen.c.orig 2005-12-19 22:51:53.000000000 +0000
+++ dyngen.c
@@ -1610,6 +1611,10 @@ void gen_code(const char *name, host_ulo
*/
fprintf(outfile, " extern char %s;\n",
sym_name);
+
+#elif defined(HOST_PPC)
+ if(strcmp("bswap32", sym_name))
+ fprintf(outfile, "extern char %s;\n", sym_name);
#else
fprintf(outfile, "extern char %s;\n", sym_name);
#endif