Subject: www/apache
To: None <tech-pkg@NetBSD.org>
From: None <brook@biology.nmsu.edu>
List: tech-pkg
Date: 03/12/2004 09:57:33
The www/apache package has some logic for handling gcc3, as stated by
the Makefile:

     # if we are using gcc3, we need to link against libgcc_s, too. This
     # ensures modules can resolve symbols they require from gcc.

However, with a -current i368 system (which has gcc3) there is no
libgcc_s present and the compilation fails.  The following patch fixes
the problem.

     --- Makefile.~1.1.1.4.~ 2004-03-03 11:43:05.000000000 -0700
     +++ Makefile    2004-03-12 08:58:47.000000000 -0700
     @@ -115,7 +115,7 @@
      # ensures modules can resolve symbols they require from gcc.
      .    if !empty(CC_VERSION:Mgcc-3*)
      USE_GCC_SHLIB=         YES # defined
     -LINK_LIBGCC_LDFLAGS+=  -lgcc_s
     +#LINK_LIBGCC_LDFLAGS+= -lgcc_s
      .    endif
      .  endif
      .endif

To me this implies that the Makefile logic needs to be somewhat
smarter about whether or not to include -lgcc_s.

Any suggestions?  Should I send-pr this or does a commiter have a
ready solution?

Cheers,
Brook