1Fix build faiure on gcc-10 (defaults to -fno-common).
2--- a/src/omx_reference_resource_manager.c
3+++ b/src/omx_reference_resource_manager.c
4@@ -30,6 +30,11 @@
5 #include "base/omx_base_component.h"
6 #include "queue.h"
7
8+int globalIndex;
9+NameIndexType *listOfcomponentRegistered;
10+ComponentListType **globalComponentList;
11+ComponentListType **globalWaitingComponentList;
12+
13 /**
14 * This is the static base pointer of the list
15 */
16--- a/src/omx_reference_resource_manager.h
17+++ b/src/omx_reference_resource_manager.h
18@@ -49,10 +49,10 @@ struct NameIndexType {
19 };
20
21
22-int globalIndex;
23-NameIndexType *listOfcomponentRegistered;
24-ComponentListType **globalComponentList;
25-ComponentListType **globalWaitingComponentList;
26+extern int globalIndex;
27+extern NameIndexType *listOfcomponentRegistered;
28+extern ComponentListType **globalComponentList;
29+extern ComponentListType **globalWaitingComponentList;
30
31 OMX_ERRORTYPE RM_RegisterComponent(char *name, int max_components);
32 OMX_ERRORTYPE addElemToList(ComponentListType **list, OMX_COMPONENTTYPE *openmaxStandComp, int index, OMX_BOOL bIsWaiting);