[w3m-dev-en 00287] BSDI patch

From: Ambrose Li (acli@ada.dhs.org)
Date: Tue Nov 14 2000 - 13:31:35 CST

  • Next message: Ken Yap: "[w3m-dev-en 00288] Re: gcc -O2 in Linux (summary so far)"

    Hi,

    when I tested the strange problem on BSDI, I found out that I need the
    following patch to compile w3m on BSDI BSD/OS 4.0. On BSDI, symbols are
    not preceded by an underscore.

    The patch is w.r.t. w3m 0.1.11-pre.

    --- gc/mach_dep.c.dist Tue Jun 6 01:39:29 2000
    +++ gc/mach_dep.c Tue Nov 14 13:18:53 2000
    @@ -212,6 +212,7 @@
             && !defined(SCO) && !defined(SCO_ELF) \
              && !(defined(LINUX) && defined(__ELF__)) \
             && !(defined(__FreeBSD__) && defined(__ELF__)) \
    + && !(defined(__bsdi__) && defined(__ELF__)) \
             && !defined(DOS4GW)
             /* I386 code, generic code does not appear to work */
             /* It does appear to work under OS2, and asms dont */
    @@ -226,10 +227,12 @@
     # endif
     
     # if ( defined(I386) && defined(LINUX) && defined(__ELF__) ) \
    - || ( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) )
    + || ( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) ) \
    + || ( defined(I386) && defined(__bsdi__) && defined(__ELF__) )
     
             /* This is modified for Linux with ELF (Note: _ELF_ only) */
             /* This section handles FreeBSD with ELF. */
    + /* This section handles BSDI with ELF. */
               asm("pushl %eax"); asm("call GC_push_one"); asm("addl $4,%esp");
               asm("pushl %ecx"); asm("call GC_push_one"); asm("addl $4,%esp");
               asm("pushl %edx"); asm("call GC_push_one"); asm("addl $4,%esp");

    -- 
    óÕ ¼ß±É  <acli@ada.dhs.org>  http://trends.ca/~acli/
         ALARMED? RAISE THE ALARM!  http://www.adbusters.org/contest/
                        "A good style should show no sign of effort;
    what is written should seem a happy accident." -- Somerset Maugham.
    



    This archive was generated by hypermail 2b29 : Tue Nov 14 2000 - 13:46:08 CST