Subject: Re: ld: unrecognized option `--no-whole-archive'
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: Chris G. Demetriou <cgd@CS.cmu.edu>
List: port-alpha
Date: 02/18/1997 13:36:15
> Is this a problem with my toolchain, or /usr/share/mk/bsd.lib.mk?
> I have rebuilt everything from cygnus.tar.gz, so perhaps I'm missing
> something?

A recent checkin (made on Feb. 10) to bsd.own.mk was broken, and
caused the Alpha to try to build shared libraries on ECOFF-toolchain
systems.

I've checked in a fix, which i've included below.  The source of
problems should be obvious.


cgd
===================================================================
Index: bsd.own.mk
RCS file: /cvsroot/src/share/mk/bsd.own.mk,v
retrieving revision 1.28
diff -c -r1.28 bsd.own.mk
*** bsd.own.mk	1997/02/10 21:08:58	1.28
--- bsd.own.mk	1997/02/18 18:37:36
***************
*** 65,71 ****
  # don't try to generate PIC versions of libraries on machines
  # which don't support PIC.
  .if  (${MACHINE_ARCH} == "vax") || \
!     ((${MACHINE_ARCH} == "mips") && defined(STATIC_TOOLCHAIN))
      ((${MACHINE_ARCH} == "alpha") && !defined(ELF_TOOLCHAIN))
  NOPIC=
  .endif
--- 65,71 ----
  # don't try to generate PIC versions of libraries on machines
  # which don't support PIC.
  .if  (${MACHINE_ARCH} == "vax") || \
!     ((${MACHINE_ARCH} == "mips") && defined(STATIC_TOOLCHAIN)) || \
      ((${MACHINE_ARCH} == "alpha") && !defined(ELF_TOOLCHAIN))
  NOPIC=
  .endif