configure: replace ${CXXLAGS} with ${CXXFLAGS_for_sh}
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 3 May 2016 17:23:44 +0000 (20:23 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 7 May 2016 17:38:01 +0000 (14:38 -0300)
Variable CXXLAGS expands to nothing, CXXFLAGS something unusable
here; CXXFLAGS_for_sh expands to what we expect here.

configure

index 6231d2b7ed2b26f241b2afa63efdcae0ad9bf2b4..49fc7391cc19294c5ded75653407a134327916c5 100755 (executable)
--- a/configure
+++ b/configure
@@ -380,7 +380,7 @@ int main(int argc, char** argv) {
    Xapian::WritableDatabase db("test.db",Xapian::DB_CREATE_OR_OPEN);
 }
 EOF
-    ${CXX} ${CXXLAGS} ${xapian_cxxflags} _default_backend.cc -o _default_backend ${xapian_ldflags}
+    ${CXX} ${CXXFLAGS_for_sh} ${xapian_cxxflags} _default_backend.cc -o _default_backend ${xapian_ldflags}
     ./_default_backend
     if [ -f test.db/iamglass ]; then
        default_xapian_backend=glass