~ chicken-core (chicken-5) 38fdc422a6a0ae05107c6bedf2f4ba49a8a50c52
commit 38fdc422a6a0ae05107c6bedf2f4ba49a8a50c52
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Fri Sep 10 13:08:47 2010 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Fri Sep 10 13:08:47 2010 +0200
csc: don't pass -fpic on cygwin
diff --git a/csc.scm b/csc.scm
index 1e8a8856..18acedfe 100644
--- a/csc.scm
+++ b/csc.scm
@@ -68,6 +68,7 @@
(define osx (eq? (software-version) 'macosx))
(define win (or mingw msvc))
(define netbsd (eq? (software-version) 'netbsd))
+(define cygwin (eq? (build-platform) 'cygwin))
(define elf
(memq (software-version) '(linux netbsd freebsd solaris openbsd)))
@@ -113,7 +114,7 @@
(define nonstatic-compilation-options '())
(define shared-library-extension ##sys#load-dynamic-extension)
(define default-translation-optimization-options '())
-(define pic-options (if (or mingw msvc) '("-DPIC") '("-fPIC" "-DPIC")))
+(define pic-options (if (or mingw msvc cygwin) '("-DPIC") '("-fPIC" "-DPIC")))
(define windows-shell WINDOWS_SHELL)
(define generate-manifest #f)
Trap