From: Mike D. Lowis Date: Mon, 26 Mar 2012 15:25:53 +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=5d3aae35f60fb8a9b51769ba2ed4fd236927f18e;p=archive%2Fcork.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 dc77080..768146f 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -9,7 +9,7 @@ require 'tools/rake_utils/source/tests' CorkStatic = Library.new({ :name => 'libcork.a', :output_dir => 'build/static', - :compiler_options => [ '-c', '-Wall', '-Werror', '-o' ], + :compiler_options => [ '-c', '-Wall', '-o' ], :source_files => [ 'source/**/*.c*' ], :include_dirs => [ 'source/**/' ], }) @@ -19,7 +19,7 @@ CorkStatic.setup_default_rake_tasks() CorkShared = Library.new({ :name => 'libcork.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*' ],