From e4348844a4147ea2de94e776fbd4f69230315091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Mon, 21 Oct 2019 14:49:54 +0200 Subject: [PATCH] Avoid adding -fPIC several times --- deps/compile.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/compile.jl b/deps/compile.jl index 03cb259..cce70ae 100644 --- a/deps/compile.jl +++ b/deps/compile.jl @@ -81,9 +81,9 @@ function compile_objs(JULIA_LAPACK=JULIA_LAPACK) end + @static if Sys.isunix() push!(cflags, "-fPIC") end for o in find_obj() @info "CC $o.c" - @static if Sys.isunix() push!(cflags, "-fPIC") end run(`$CC $cflags -o $builddir/$o.o -c $srcdir/$o.c`) end objs = ["$builddir/$o.o" for o in find_obj()]