Permalink
Browse files

fixed python module building bug on x86_64 platform via -fPIC option

  • Loading branch information...
1 parent 71c5e6a commit a139430f097af18fc40c67b22faf402ad0c9e517 Le Zhang committed Feb 9, 2012
Showing with 8 additions and 2 deletions.
  1. +4 −1 configure
  2. +4 −1 configure.in
View
@@ -6199,6 +6199,9 @@ if test "$enable_static" = 'yes'; then
LINK="$CXX $LDFLAGS -static"
else
LINK="$CXX $LDFLAGS"
+ CFLAGS="$CFLAGS -fPIC"
+ CXXFLAGS="$CXXFLAGS -fPIC"
+ FCFLAGS="$FCFLAGS -fPIC"
fi
# show optional compoment information
@@ -7274,7 +7277,7 @@ do
cat >>$CONFIG_STATUS <<_ACEOF
# First, check the format of the line:
cat >"\$tmp/defines.sed" <<\\CEOF
-/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
+/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
b
:def
View
@@ -1,5 +1,5 @@
dnl Copyright 2002-2004 by Zhang Le <ejoy@xinhuanet.com>
-dnl Last Change : 04-Oct-2006.
+dnl Last Change : 09-Feb-2012.
AC_INIT(Jamrules.in)
@@ -103,6 +103,9 @@ if test "$enable_static" = 'yes'; then
LINK="$CXX $LDFLAGS -static"
else
LINK="$CXX $LDFLAGS"
+ CFLAGS="$CFLAGS -fPIC"
+ CXXFLAGS="$CXXFLAGS -fPIC"
+ FCFLAGS="$FCFLAGS -fPIC"
fi
# show optional compoment information

0 comments on commit a139430

Please sign in to comment.