change dynext linker search to gcc;cc instead of just cc

svn: r7059
This commit is contained in:
Matthew Flatt 2007-08-08 17:38:53 +00:00
parent f7a942b0b7
commit b3821d8d82

View File

@ -27,15 +27,17 @@
(find-executable-path "ilink32.exe" #f)))
(define (get-unix-linker)
(let ([s (case (string->symbol (path->string (system-library-subpath #f)))
(let ([l (case (string->symbol (path->string (system-library-subpath #f)))
[(sparc-solaris i386-solaris
sparc-sunos4
i386-freebsd-2.x
parisc-hpux
i386-cygwin)
"ld"]
[else "cc"])])
(find-executable-path s s)))
'("ld")]
[else '("gcc" "cc")])])
(ormap (lambda (s)
(find-executable-path s #f))
l)))
(define (check-valid-linker-path v)
(unless (and (file-exists? v)