~ chicken-core (chicken-5) 49c1af45fdce3881076c7224cb25ceb514c1c0a1
commit 49c1af45fdce3881076c7224cb25ceb514c1c0a1
Author: Mario Domenech Goulart <mario.goulart@gmail.com>
AuthorDate: Sat Sep 22 13:57:04 2012 -0300
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Sun Sep 23 00:39:46 2012 +0200
csc.scm: add "-z origin" to linker options in FreeBSD
FreeBSD's linker require tath option to process $ORIGIN. Without this
patch, the deployment test (make check) fails.
Signed-off-by: felix <felix@call-with-current-continuation.org>
diff --git a/csc.scm b/csc.scm
index 8f400693..0ced1e4f 100644
--- a/csc.scm
+++ b/csc.scm
@@ -276,6 +276,9 @@
"\"")) )
(else
(list (conc "-L\"" library-dir "\""))))
+ (if (eq? (software-version) 'freebsd)
+ (list "-z origin")
+ '())
(cond ((get-environment-variable "CHICKEN_C_LIBRARY_PATH") =>
(lambda (path)
(map (cut string-append "-L\"" <> "\"") (string-split path ":;"))))
Trap