Skip to content

Commit

Permalink
fixed libcharguess configure with -fPIC flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ernesto-jimenez committed Feb 26, 2011
1 parent 0fd2167 commit 70b75ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/libcharguess/cpp/configure
Expand Up @@ -2306,7 +2306,7 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -O2 -fPIC"
else
CFLAGS="-g"
fi
Expand Down Expand Up @@ -3150,7 +3150,7 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -O2 -fPIC"
else
CXXFLAGS="-g"
fi
Expand Down
4 changes: 2 additions & 2 deletions tasks/extconf.rake
Expand Up @@ -7,7 +7,7 @@ task :compile => "extconf:compile"

task :test => :compile

BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}"
$hoe.clean_globs |= ["ext/**/#{BIN}", "lib/**/#{BIN}", 'ext/**/Makefile']
BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp,o,a}"
$hoe.clean_globs |= ["ext/**/#{BIN}", "lib/**/#{BIN}", "ext/libcharguess/cpp/config.{status,h,log}", 'ext/**/Makefile']
$hoe.spec.require_paths = Dir['{lib,ext/*}']
$hoe.spec.extensions = FileList["ext/**/extconf.rb"].to_a

0 comments on commit 70b75ef

Please sign in to comment.