~ chicken-core (chicken-5) a3053710fcad9ed81a266873dadd9e54681a1f9e


commit a3053710fcad9ed81a266873dadd9e54681a1f9e
Author:     felix <bunny351@gmail.com>
AuthorDate: Thu May 6 16:01:27 2010 +0200
Commit:     felix <bunny351@gmail.com>
CommitDate: Thu May 6 16:01:27 2010 +0200

    cross-mode fixes for chicken-install/chicken-uninstall

diff --git a/chicken-status.scm b/chicken-status.scm
index c81f5c1f..7cd96797 100644
--- a/chicken-status.scm
+++ b/chicken-status.scm
@@ -34,7 +34,7 @@
 	  files setup-api)
 
   (define-foreign-variable C_TARGET_LIB_HOME c-string)
-  (define-foreign-variable C_BINARY_VERSION c-string)
+  (define-foreign-variable C_BINARY_VERSION int)
 
   (define *host-extensions* #f)
 
diff --git a/chicken-uninstall.scm b/chicken-uninstall.scm
index 1b73534c..7a7f35db 100644
--- a/chicken-uninstall.scm
+++ b/chicken-uninstall.scm
@@ -36,7 +36,7 @@
   (import srfi-1 posix data-structures utils ports regex srfi-13 files)
 
   (define-foreign-variable C_TARGET_LIB_HOME c-string)
-  (define-foreign-variable C_BINARY_VERSION c-string)
+  (define-foreign-variable C_BINARY_VERSION int)
 
   (define *host-extensions* #f)
 
diff --git a/rules.make b/rules.make
index d3a0fb99..711485b7 100644
--- a/rules.make
+++ b/rules.make
@@ -758,7 +758,7 @@ ifeq ($(CROSS_CHICKEN)$(DESTDIR),0)
 	-$(IBINDIR)$(SEP)$(CHICKEN_INSTALL_PROGRAM) -update-db
 else
 	@echo
-	@echo "Warning: cannot run \`chicken-install -update-db' when DESTDIR is set"
+	@echo "Warning: cannot run \`$(CHICKEN_INSTALL_PROGRAM) -update-db' when cross-compiling or DESTDIR is set"
 	@echo
 endif
 endif
Trap