]> git.mdlowis.com Git - archive/cork.git/commitdiff
Added -fPIC compiler option for shared library. Some systems need it some systems...
authorMike D. Lowis <mike@mdlowis.com>
Mon, 26 Mar 2012 15:25:53 +0000 (11:25 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Mon, 26 Mar 2012 15:25:53 +0000 (11:25 -0400)
rakefile.rb

index dc77080adbe7d0d1fa5cc60152f8f5b19292a9cb..768146f6fd68d084c2b068548baee31fb91c3e90 100644 (file)
@@ -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*' ],