~ chicken-core (chicken-5) 36e4501c7dceca1330887c1f0866998ae7fe9b67


commit 36e4501c7dceca1330887c1f0866998ae7fe9b67
Author:     felix <felix@call-with-current-continuation.org>
AuthorDate: Thu Mar 11 09:31:10 2010 +0100
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Thu Mar 11 09:31:10 2010 +0100

    fix for not handling netbsd as an elf target

diff --git a/csc.scm b/csc.scm
index 2c32e381..cbf75ad2 100644
--- a/csc.scm
+++ b/csc.scm
@@ -64,9 +64,10 @@
 (define msvc (eq? (build-platform) 'msvc))
 (define osx (eq? (software-version) 'macosx))
 (define win (or mingw msvc))
+(define netbsd (eq? (software-version) 'netbsd))
 
 (define elf
-  (memq (software-version) '(linux freebsd solaris openbsd)))
+  (memq (software-version) '(linux netbsd freebsd solaris openbsd)))
 
 (define (quit msg . args)
   (fprintf (current-error-port) "~a: ~?~%" CSC_PROGRAM msg args)
@@ -265,7 +266,7 @@
 	 (list
 	  (conc "-L\"" library-dir "\"")
 	  (conc " -Wl,-R\""
-		(if deployed
+		(if (and deployed (not netbsd))
 		    "\\$ORIGIN"
 		    (prefix "" "lib"
 			    (if host-mode
Trap