Skip to content

Commit

Permalink
Added flag -fPIC. Still doesn't compile
Browse files Browse the repository at this point in the history
  • Loading branch information
abinashmeher999 committed May 29, 2015
1 parent 0f41bd8 commit 2c1eb36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ruby/ext/symengine/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
require 'mkmf'

#To avoid the error "can not be used when making a shared object; recompile with -fPIC"
$CFLAGS = ["-Wall -Werror=return-type -fPIC",$CFLAGS].join(" ")

#Gives the ability to easily use alternate compilers to build the extension
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

Expand Down

0 comments on commit 2c1eb36

Please sign in to comment.