Compilation broken in test setup 3 when compiling MDIS with "LIB_MODE = static"
While I was doing some tests switching between static and shared linkage modes, I have found that the compilation is broken in mdis-setup 3 when I seleted "LIB_MODE = static" in the Makefile.
The error is:
++++++++ Building smb2_bmc_ctrl +++++++++++
Directory OBJ/smb2_bmc_ctrl created
Compiling smb2_bmc_ctrl.c
Linking ../../BIN/smb2_bmc_ctrl
/usr/bin/ld: /home/men/felipe/LIB/libsmb2_api.a(smb2_api.o): in function `AlertRemove':
smb2_api.c:(.text+0x61e): undefined reference to `UOS_SigRemove'
/usr/bin/ld: smb2_api.c:(.text+0x648): undefined reference to `UOS_DL_Remove'
/usr/bin/ld: smb2_api.c:(.text+0x662): undefined reference to `UOS_SigExit'
/usr/bin/ld: /home/men/felipe/LIB/libsmb2_api.a(smb2_api.o): in function `SMB2API_Init':
smb2_api.c:(.text+0xbb1): undefined reference to `UOS_DL_NewList'
/usr/bin/ld: /home/men/felipe/LIB/libsmb2_api.a(smb2_api.o): in function `SMB2API_AlertCbInstallSig':
smb2_api.c:(.text+0xca3): undefined reference to `UOS_SigInstall'
/usr/bin/ld: smb2_api.c:(.text+0xd26): undefined reference to `UOS_DL_AddTail'
/usr/bin/ld: smb2_api.c:(.text+0xd50): undefined reference to `UOS_SigRemove'
/usr/bin/ld: smb2_api.c:(.text+0xd62): undefined reference to `UOS_SigExit'
/usr/bin/ld: smb2_api.c:(.text+0xd78): undefined reference to `UOS_SigInit'
/usr/bin/ld: smb2_api.c:(.text+0xda7): undefined reference to `UOS_SigExit'
/usr/bin/ld: smb2_api.c:(.text+0xde1): undefined reference to `UOS_SigRemove'
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/menlinux/BUILD/MDIS/TPL/usrprog_static.mak:182: ../../BIN/smb2_bmc_ctrl] Error 1
make[1]: *** [/opt/menlinux/BUILD/MDIS/TPL/usrprog_static.mak:158: buildinobjdir] Error 2
make: *** [/opt/menlinux/BUILD/MDIS/TPL/rules.mak:327: SMB2/TOOLS/SMB2_BMC_CTRL/COM/program.mak] Error
The issue is not reproducible in mdis-setup 6, so it seems it is related with smb2_api binary.
I have attached Makefile and system.dsc.
With these files, the issue is also reproducible compiling in local, no need to compile in target.