From 6b33a1f0851c69ee404d2a5dded6396ec00a15eb Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Thu, 7 May 2015 22:43:06 -0700
Subject: [PATCH] Install the appropriate compiled unix file.

---
 bin/make-main-dist.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/bin/make-main-dist.sh b/bin/make-main-dist.sh
index 8919cd919..4d0dbfd1d 100755
--- a/bin/make-main-dist.sh
+++ b/bin/make-main-dist.sh
@@ -127,12 +127,21 @@ do
 done
 
 # Create the directories and install the fasl files for asdf and defsystem
-for f in asdf defsystem unix
+for f in asdf defsystem
 do
     install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/contrib/$f
     install ${GROUP} ${OWNER} -m 0644 $TARGET/contrib/$f/$f.$FASL $DESTDIR/lib/cmucl/lib/contrib/$f
 done
 
+set -x
+case `uname -s` in
+  Linux*) UCONTRIB="unix-glibc2" ;;
+  *) UCONTRIB="unix" ;;
+esac
+
+install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/contrib/unix
+install ${GROUP} ${OWNER} -m 0644 $TARGET/contrib/unix/$UCONTRIB.$FASL $DESTDIR/lib/cmucl/lib/contrib/unix
+
 # Copy the source files for asdf and defsystem
 for f in `(cd src; find contrib/asdf contrib/defsystem -type f -print | grep -v CVS)`
 do
-- 
GitLab