From 79c2158045f26a4a30be6e57652268b39cbf8777 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Mon, 26 Mar 2012 11:26:58 -0400 Subject: [PATCH] Added -fPIC compiler option for shared library. Some systems need it some systems dont. Also disabled the option to treat warnings as errors because -fPIC will produce a warning on some systems. --- rakefile.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rakefile.rb b/rakefile.rb index 06f20f2..c082816 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -8,7 +8,7 @@ require 'tools/rake_utils/source/library.rb' ParseUtilsStatic = Library.new({ :name => 'libparse-utils.a', :output_dir => 'build/static', - :compiler_options => [ '-c', '-Wall', '-Werror', '-o'], + :compiler_options => [ '-c', '-Wall', '-o'], :source_files => [ 'source/**/*.c*' ], :include_dirs => [ 'source/**/' ], }) @@ -18,7 +18,7 @@ ParseUtilsStatic.setup_default_rake_tasks() ParseUtilsShared = Library.new({ :name => 'libparse-utils.so', :output_dir => 'build/shared', - :compiler_options => [ '-c', '-Wall', '-Werror', '-o'], + :compiler_options => [ '-c', '-Wall', '-fPIC', '-o'], :linker_bin => 'c++', :linker_options => ['-shared', '-o'], :source_files => [ 'source/**/*.c*' ], -- 2.52.0