]> git.mdlowis.com Git - archive/parse-utils.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:26:58 +0000 (11:26 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Mon, 26 Mar 2012 15:26:58 +0000 (11:26 -0400)
rakefile.rb

index 06f20f28dbbe8a14309efe82be1fdc053466b0f3..c082816b90e09429267a02b53b887482a4c998ea 100644 (file)
@@ -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*' ],