i386-{macosx,darwin} is like ppc
svn: r2282
This commit is contained in:
parent
a67a8af981
commit
bf4563390d
|
@ -59,13 +59,13 @@
|
|||
(define gcc-cpp-flags
|
||||
(add-variant-flags (case (string->symbol (path->string (system-library-subpath #f)))
|
||||
[(parisc-hpux) '("-D_HPUX_SOURCE")]
|
||||
[(ppc-macosx) '("-DOS_X")]
|
||||
[(ppc-macosx i386-macosx) '("-DOS_X")]
|
||||
[(ppc-darwin) '("-DOS_X" "-DXONX")]
|
||||
[else null])))
|
||||
|
||||
(define gcc-compile-flags (append '("-c" "-O2" "-fPIC")
|
||||
(case (string->symbol (path->string (system-library-subpath #f)))
|
||||
[(ppc-macosx) '("-fno-common")]
|
||||
[(ppc-macosx i386-macosx) '("-fno-common")]
|
||||
[(ppc-darwin) '("-fno-common")]
|
||||
[else null])
|
||||
gcc-cpp-flags))
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
(define (get-unix-linker)
|
||||
(or (getenv "MZSCHEME_DYNEXT_LINKER")
|
||||
(let ([s (case (string->symbol (path->string (system-library-subpath #f)))
|
||||
[(rs6k-aix ppc-macosx ppc-darwin) "cc"]
|
||||
[(rs6k-aix ppc-macosx i386-macosx ppc-darwin i386-darwin) "cc"]
|
||||
[else "ld"])])
|
||||
(find-executable-path s s))))
|
||||
|
||||
|
@ -117,7 +117,8 @@
|
|||
(format "-bE:~a/ext.exp" include-dir)
|
||||
"-bnoentry")]
|
||||
[(parisc-hpux) (list "-b")]
|
||||
[(ppc-macosx ppc-darwin) (list "-bundle" "-flat_namespace" "-undefined" "suppress")]
|
||||
[(ppc-macosx ppc-darwin i386-macosx i386-darwin)
|
||||
(list "-bundle" "-flat_namespace" "-undefined" "suppress")]
|
||||
[(i386-cygwin) win-gcc-linker-flags]
|
||||
[else (list "-shared")]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user