Hi there,

this is another patch for the OpenBSD people, that will fix deployment.
The patch commit says it all (I hope).

Enjoy,

Christian

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu
>From a95ae626f3741cca23698de84f400ce0a55fe85c Mon Sep 17 00:00:00 2001
From: Christian Kellermann <ck...@pestilenz.org>
Date: Fri, 24 Jan 2014 15:31:42 +0100
Subject: [PATCH] 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.
---
 NEWS    | 2 ++
 csc.scm | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index ed114c6..3743e57 100644
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,8 @@
     and "-emit-type-file", respectively; "-n" has been deprecated.
   - chicken-install now also accepts full URI syntax for proxy environment
     variables (thanks to Michele La Monaca)
+  - csc "-deploy" works now on FreeBSD (thanks to Jules Altfas and
+    Vitaly Magerya) and OpenBSD.
 
 - Syntax
   - Added the aliases "&optional" and "&rest" as alternatives to "#!optional"
diff --git a/csc.scm b/csc.scm
index 935687f..6d1ce58 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") => 
-- 
1.8.4.5

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to