Code

patch required to build oracle plugin, collectd-5.4.0 (#653)
authorKOMEDA Shinji <komeda.shinji@gmail.com>
Wed, 25 Jun 2014 13:34:15 +0000 (22:34 +0900)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 30 Jul 2014 10:58:35 +0000 (12:58 +0200)
configure.in

index 0f2db0788ddb4cdcb3464d0f57c17b6f2a68fbc3..770e39540f4a3a2f5d400b6df6dcc38997ec4020 100644 (file)
@@ -2915,14 +2915,14 @@ fi
 if test "x$with_oracle" = "xyes"
 then
        SAVE_CPPFLAGS="$CPPFLAGS"
-       SAVE_LDFLAGS="$LDFLAGS"
+       SAVE_LIBS="$LDFLAGS"
        CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
-       LDFLAGS="$LDFLAGS $with_oracle_libs"
+       LIBS="$LIBS $with_oracle_libs"
 
        AC_CHECK_FUNC(OCIEnvCreate, [with_oracle="yes"], [with_oracle="no (Symbol 'OCIEnvCreate' not found)"])
 
        CPPFLAGS="$SAVE_CPPFLAGS"
-       LDFLAGS="$SAVE_LDFLAGS"
+       LIBS="$SAVE_LIBS"
 fi
 if test "x$with_oracle" = "xyes"
 then