Ticket #622: xapian.patch

File xapian.patch, 964 bytes (added by Hristo Venev, 11 years ago)

Fix

  • configure.ac

     
    12801280    cxxcpp_flags="$cxxcpp_flags -DXAPIAN_HAS_${backend}_BACKEND"
    12811281  fi
    12821282done
    1283 if test yes = "$GXX" ; then
    1284     dnl If _GLIBCXX_DEBUG is being deliberately set or unset, do the same
    1285     dnl when generating version.h.
    1286     for flag in $CXXFLAGS $CPPFLAGS ; do
    1287       case $flag in
    1288       -D_GLIBCXX_DEBUG*|-U_GLIBCXX_DEBUG*) cxxcpp_flags="$cxxcpp_flags $flag" ;;
    1289       esac
    1290     done
    1291 fi
    12921283rm -f include/xapian/version.h.tmp
    12931284dnl "\r" in sed is a GNUism, but we only need to remove it on MS Windows
    12941285dnl where we'll always have GNU sed, and other sed's will just interpret
    12951286dnl it as "r" (Solaris sed) or maybe literal "\r" which won't match.
    12961287dnl
    12971288dnl Use @@ around $MAIN_VERSION so we get " in the final output.
    1298 $CXXCPP $cxxcpp_flags\
     1289$CXXCPP $cxxcpp_flags $CXXFLAGS $CPPFLAGS\
    12991290        -DSTRING_VERSION="\"@@$MAIN_VERSION@@\""\
    13001291        -DMAJOR_VERSION="\"$MAJOR_VERSION\""\
    13011292        -DMINOR_VERSION="\"$MINOR_VERSION\""\