[project @ 2001-07-24 04:45:59 by ken]
authorken <unknown>
Tue, 24 Jul 2001 04:45:59 +0000 (04:45 +0000)
committerken <unknown>
Tue, 24 Jul 2001 04:45:59 +0000 (04:45 +0000)
commita7373b8dfea393881f129dad25ebc2aebd43af35
tree8a7e10ab994e6808534867061459bb580884d6b6
parent395065b0433334f67c3db84af14de1aef8f038a0
[project @ 2001-07-24 04:45:59 by ken]
Added -static, a flag for compiling on the Alpha that is already
listed under machdepCCOpts in DriverFlags.hs.  Without it, the
following assert in GC.c fails:

    /* make sure the info pointer is into text space */
    ASSERT(q && (LOOKS_LIKE_GHC_INFO(GET_INFO(q))
                 || IS_HUGS_CONSTR_INFO(GET_INFO(q))));

Added -Xlinker -noprefix_recognition, a flag for Alpha compilation
that I just added to machdepCCOpts in DriverFlags.hs.  We need
this flag to disable the following documented behavior of ld(1) on
Digital UNIX:

   All routines that start with __init_ are treated, by default,
   as initialization routines. These are routines that are called
   without an argument when the file that contains them is loaded
   or when the program that contains them is started.

Unfortunately, this flag produces the annoying (but harmless) gcc
message

    gcc: -noprefix_recognition: linker input file unused since
    linking not done

(See also ghc/compiler/main/DriverFlags.hs)
mk/bootstrap.mk