Skip to content

Commit

Permalink
julia-config needs -std=gnu99
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton authored and JeffBezanson committed Apr 13, 2017
1 parent 25fd57e commit 5d7c4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/julia-config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ function cflags()
arg2 = replace(includeDir(),"\\","\\\\")
threading_def = threadingOn() ? "-DJULIA_ENABLE_THREADING=1 " : ""
if is_unix()
return """$(threading_def)-fPIC -DJULIA_INIT_DIR=\\"$arg1\\" -I$arg2"""
return """-std=gnu99 $(threading_def)-fPIC -DJULIA_INIT_DIR=\\"$arg1\\" -I$arg2"""
else
return """$(threading_def)-DJULIA_INIT_DIR=\\"$arg1\\" -I$arg2"""
return """-std=gnu99 $(threading_def)-DJULIA_INIT_DIR=\\"$arg1\\" -I$arg2"""
end
end

Expand Down

0 comments on commit 5d7c4c2

Please sign in to comment.