~ chicken-core (chicken-5) 8ed1ff65f31628b215b435dfd03d6f1ee3ae4b0b
commit 8ed1ff65f31628b215b435dfd03d6f1ee3ae4b0b Author: felix <felix@call-with-current-continuation.org> AuthorDate: Sat Dec 29 23:09:15 2012 +0100 Commit: felix <felix@call-with-current-continuation.org> CommitDate: Sat Dec 29 23:18:40 2012 +0100 pass "-z origin" to freebsd linker only if "-deployed" is given; explained -deployed somewhat (csc help output). diff --git a/csc.scm b/csc.scm index 62eb66d8..96d7e5ee 100644 --- a/csc.scm +++ b/csc.scm @@ -273,7 +273,7 @@ "\"")) ) (else (list (conc "-L\"" library-dir "\"")))) - (if (eq? (software-version) 'freebsd) + (if (and deployed (eq? (software-version) 'freebsd)) (list "-z origin") '()) (cond ((get-environment-variable "CHICKEN_C_LIBRARY_PATH") => @@ -481,8 +481,9 @@ Usage: #{csc} FILENAME | OPTION ... -host compile for host when configured for cross-compiling -private-repository load extensions from executable path - -deployed compile support file to be used from a deployed - executable + -deployed link support file to be used from a deployed + executable (sets `rpath' accordingly, if supported + on this platform) -no-elevation embed manifest on Windows to supress elevation warnings for programs named `install' or `setup'Trap