From: Mike D. Lowis Date: Mon, 26 Mar 2012 15:26:58 +0000 (-0400) Subject: Added -fPIC compiler option for shared library. Some systems need it some systems... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=79c2158045f26a4a30be6e57652268b39cbf8777;p=archive%2Fparse-utils.git 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. --- 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*' ],