diff --git a/tensorflow/core/common_runtime/next_pluggable_device/next_pluggable_device_c_api_flag.cc b/tensorflow/core/common_runtime/next_pluggable_device/next_pluggable_device_c_api_flag.cc index 3cf05b338e5c2a..79c948838f4f39 100644 --- a/tensorflow/core/common_runtime/next_pluggable_device/next_pluggable_device_c_api_flag.cc +++ b/tensorflow/core/common_runtime/next_pluggable_device/next_pluggable_device_c_api_flag.cc @@ -18,7 +18,7 @@ namespace tensorflow { namespace npd { // Define as a weak symbol so that it can be overridden when necessary. -const bool kTfNextPluggableDeviceUseCApi __attribute__((weak)) = false; +extern const bool kTfNextPluggableDeviceUseCApi __attribute__((weak)) = false; } // namespace npd } // namespace tensorflow