~ chicken-core (chicken-5) cac17154b9e910314639a79008e56c6699773f12


commit cac17154b9e910314639a79008e56c6699773f12
Author:     felix <felix@call-with-current-continuation.org>
AuthorDate: Fri Sep 10 13:08:47 2010 +0200
Commit:     Peter Bex <Peter.Bex@xs4all.nl>
CommitDate: Fri Sep 10 17:08:40 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