Commits
Mohamed Akram authored and Perry E. Metzger committed cb919ed7038
1 - | --- src/compiler/crystal/compiler.cr.orig 2018-04-19 22:03:27.000000000 +0400 |
2 - | +++ src/compiler/crystal/compiler.cr 2018-04-19 22:09:25.000000000 +0400 |
3 - | |
1 + | --- src/compiler/crystal/compiler.cr.orig 2018-06-19 05:20:05.000000000 +0400 |
2 + | +++ src/compiler/crystal/compiler.cr 2018-06-19 05:32:59.000000000 +0400 |
3 + | |
4 4 | |
5 5 | link_flags = @link_flags || "" |
6 6 | link_flags += " -rdynamic" |
7 7 | - link_flags += " -static" if static? |
8 + | + link_flags += " -static" if static? && !program.has_flag? "darwin" |
8 9 | |
9 10 | %(#{cc} #{object_name} -o '#{output_filename}' #{link_flags} #{program.lib_flags}) |
10 11 | end |