diff options
author | jkh <jkh@FreeBSD.org> | 1998-09-04 06:31:34 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-09-04 06:31:34 +0000 |
commit | 525a0456f69e778197984b8d0a21b4bca198f76a (patch) | |
tree | 9c3bae9e65583e631812455ece00054992e33d69 /release | |
parent | 3b89bdbe5522c11eb2121f8612559f208b48f448 (diff) | |
download | FreeBSD-src-525a0456f69e778197984b8d0a21b4bca198f76a.zip FreeBSD-src-525a0456f69e778197984b8d0a21b4bca198f76a.tar.gz |
Only move a.out libs if we're building for a.out.
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/Makefile b/release/Makefile index eca5c8b..c074557 100644 --- a/release/Makefile +++ b/release/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.371 1998/09/01 06:57:18 jkh Exp $ +# $Id: Makefile,v 1.372 1998/09/02 18:04:18 max Exp $ # # make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ] # @@ -33,7 +33,7 @@ RELEASEDOCMODULE?= doc RELEASEPORTSMODULE?= ports # Unless set elsewhere, indicate the object format we'll be using. -OBJFORMAT?= aout +OBJFORMAT?= elf # Uncomment this to disable the doc.1 target. It is also an ERROR # to set NOPORTS and not set NODOC since docs depend on ports. @@ -226,7 +226,7 @@ rerelease release: echo "cd /usr/src" >> ${CHROOTDIR}/mk .if make(release) # This eases bootstrapping from a more recent hosting environment: -.if exists(/usr/lib/aout/) +.if exists(/usr/lib/aout/) && (${OBJFORMAT} == "aout") echo "mkdir -p /usr/lib/compat/aout" >> ${CHROOTDIR}/mk echo "chflags noschg /usr/lib/aout/lib*.so.*" >> ${CHROOTDIR}/mk echo "mv /usr/lib/aout/lib*.so.* /usr/lib/compat/aout" >> ${CHROOTDIR}/mk @@ -243,7 +243,7 @@ rerelease release: echo "(cd etc; make distribution)" >> ${CHROOTDIR}/mk # Now we've got our own shared libs, remove the bootstrapping # libs again. -.if !exists(/usr/lib/aout/) +.if !exists(/usr/lib/aout/) && (${OBJFORMAT} == "aout") echo "rm -f /usr/lib/compat/*" >> ${CHROOTDIR}/mk echo "ldconfig /usr/lib" >> ${CHROOTDIR}/mk .endif |