Commit 1a56a92c authored by Shane Snyder's avatar Shane Snyder

fixed linker error caused when not using --with-darshan flag

parent 32e58d09
...@@ -97,7 +97,7 @@ if test "x${with_darshan}" != "x" ; then ...@@ -97,7 +97,7 @@ if test "x${with_darshan}" != "x" ; then
AC_CHECK_FILE([$darshan_headers/darshan-io-events.h], AC_CHECK_FILE([$darshan_headers/darshan-io-events.h],
AM_CONDITIONAL(USE_DARSHAN, true), AM_CONDITIONAL(USE_DARSHAN, true),
AC_MSG_ERROR(Could not find darshan-io-events.h at: $darshan_headers)) AC_MSG_ERROR(Could not find darshan-io-events.h at: $darshan_headers))
DARSHAN_CPPFLAGS="-I${with_darshan}/include" DARSHAN_CPPFLAGS="-DUSE_DARSHAN=1 -I${with_darshan}/include"
AC_SUBST(DARSHAN_CPPFLAGS) AC_SUBST(DARSHAN_CPPFLAGS)
else else
AM_CONDITIONAL(USE_DARSHAN, false) AM_CONDITIONAL(USE_DARSHAN, false)
......
...@@ -15,10 +15,17 @@ ...@@ -15,10 +15,17 @@
*/ */
extern struct codes_workload_method test_workload_method; extern struct codes_workload_method test_workload_method;
extern struct codes_workload_method bgp_io_workload_method; extern struct codes_workload_method bgp_io_workload_method;
#ifdef USE_DARSHAN
extern struct codes_workload_method darshan_io_workload_method; extern struct codes_workload_method darshan_io_workload_method;
#endif
static struct codes_workload_method *method_array[] = static struct codes_workload_method *method_array[] =
{&test_workload_method, &bgp_io_workload_method, &darshan_io_workload_method, NULL}; {
&test_workload_method,
&bgp_io_workload_method,
#ifdef USE_DARSHAN
&darshan_io_workload_method,
#endif
NULL};
/* This shim layer is responsible for queueing up reversed operations and /* This shim layer is responsible for queueing up reversed operations and
* re-issuing them so that the underlying workload generator method doesn't * re-issuing them so that the underlying workload generator method doesn't
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment