~ chicken-core (chicken-5) 49f4bcdbfc239bdf3f4f04cfb4daeb1193dd5acc


commit 49f4bcdbfc239bdf3f4f04cfb4daeb1193dd5acc
Author:     Christian Kellermann <ckeen@pestilenz.org>
AuthorDate: Fri Jan 24 15:31:42 2014 +0100
Commit:     Peter Bex <peter.bex@xs4all.nl>
CommitDate: Sat Feb 1 19:01:26 2014 +0100

    Enable -deploy on OpenBSD
    
    The fix is the same as for FreeBSD.  DF_1_ORIGIN has to be set and
    this gets done by passing the -z origin flag to the linker.
    
    With this patch the deployment test passes and OpenBSD has a full
    and working make check run now.
    
    Signed-off-by: Peter Bex <peter.bex@xs4all.nl>

diff --git a/NEWS b/NEWS
index 5b040286..65897290 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+4.8.4
+
+- Tools
+  - csc "-deploy" works now on FreeBSD (thanks to Jules Altfas and
+    Vitaly Magerya) and OpenBSD.
+
 4.8.3
 
 - Security fixes
diff --git a/csc.scm b/csc.scm
index 935687f6..6d1ce589 100644
--- a/csc.scm
+++ b/csc.scm
@@ -276,7 +276,8 @@
 		  (list (conc "-Wl,-R\"" library-dir "\"")))
 	 (else
 	  (list (conc "-L\"" library-dir "\""))))
-   (if (and deployed (eq? (software-version) 'freebsd))
+   (if (and deployed (or (eq? (software-version) 'freebsd)
+                         (eq? (software-version) 'openbsd)))
        (list "-Wl,-z,origin")
        '())
    (cond ((get-environment-variable "CHICKEN_C_LIBRARY_PATH") => 
Trap