Don't make lib/lib a symlink to ../microcode; this breaks liarc.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 27 Jul 2010 16:52:43 +0000 (16:52 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 27 Jul 2010 16:52:43 +0000 (16:52 +0000)
src/Setup.sh

index 8145f2cc1c01568d73cbed5f2d36a6bdec1988d8..27318e240df16637c05cdb3069ef6665dece0ba5 100755 (executable)
@@ -68,13 +68,22 @@ OTHER_SUBDIRS="6001 compiler rcs runtime win32 xdoc microcode"
 # lib
 maybe_mkdir lib
 maybe_link lib/edwin ../edwin
-maybe_link lib/lib ../microcode
 maybe_link lib/include ../microcode
 maybe_link lib/optiondb.scm ../etc/optiondb.scm
 maybe_link lib/runtime ../runtime
 maybe_link lib/mit-scheme.h ../microcode/pruxffi.h
 maybe_link lib/ffi ../ffi
 
+# This is a kludge so that liarc bundles can coexist with microcode
+# modules in the same lib directory.  If you have a better way to make
+# this work, please implement it.  Making lib/lib a symlink to
+# ../microcode does not work -- configure.ac wants to make symlinks at
+# lib/lib/sf.so to ../../sf/sf.so, &c.
+maybe_mkdir lib/lib
+for MODULE in prbfish prmd5 prmhash prmcrypt prgdbm prdb4 prpgsql prx11; do
+  maybe_link "lib/lib/${MODULE}.so" "../../microcode/${MODULE}.so"
+done
+
 for SUBDIR in ${INSTALLED_SUBDIRS} ${OTHER_SUBDIRS}; do
     echo "setting up ${SUBDIR}"
     maybe_link ${SUBDIR}/Setup.sh ../etc/Setup.sh