Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 1997 14:30:41 -0700 (PDT)
From:      John Polstra <jdp@FreeBSD.ORG>
To:        CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-share@FreeBSD.ORG
Subject:   cvs commit:  src/share/mk bsd.lib.mk
Message-ID:  <199705042130.OAA06881@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         97/05/04 14:30:40

  Modified:    share/mk  bsd.lib.mk
  Log:
  Use "gcc -shared" instead of "ld -Bshareable" for building shared
  libraries.  Remove the now-unneeded CPLUSPLUSLIB hack.  I will also
  remove the CPLUSPLUSLIB definitions from the Makefiles that use it,
  after the dust settles.
  
  Use gcc's LIBRARY_PATH environment variable to handle DESTDIR,
  instead of -L flags in LDDESTDIR.  LIBRARY_PATH is documented in
  the gcc info pages.  It is better than using -L flags, because it
  modifies the search for start-up files as well as for libraries.
  A new variable LDDESTDIRENV is used to contain the normally-empty
  LIBRARY_PATH environment setting.
  
  LDDESTDIR is no longer set in <bsd.lib.mk>.  It is still honored for
  the time being, because a couple of userland Makefiles still (wrongly)
  set it.  These should be fixed, and LDDESTDIR should vanish.
  
  Removed the commented-out "LDDESTDIR+=-nostdlib", because "gcc -shared"
  doesn't link in any standard libraries anyway.
  
  Removed the ".if defined(LDADD)" around the _EXTRADEPEND target for
  shared libraries.  This target is always necessary now, because
  c++rt0.o is linked into every shared library.
  
  Don't merge this into -2.2 without first merging the support for
  "gcc -shared".
  
  Revision  Changes    Path
  1.55      +5 -11     src/share/mk/bsd.lib.mk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705042130.OAA06881>