One of our internal libraries links to FreeType which causes linker errors due to the duplicate symbols in UnrealEngine. Prior to 4.16 we could add the “/FORCE:MULTIPLE” linker flag via TargetRules.SetupGlobalEnvironment
and OutLinkEnvironmentConfiguration.AdditionalArguments
but this is no longer possible in 4.16 due to the build system updates. I can’t find any way to accomplish this with the current system since most of the members of LinkEnvironment{Configuration}
are no longer exposed to targets. Am I missing something? Do I need to modify TargetRules
and WindowsPlatform
to get the same functionality?
I think we have a similiar problem but with Shipping and logging.
in 4.15 it worked to have it like this in our target file:
public override void SetupGlobalEnvironment(
TargetInfo Target,
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
)
{
OutCPPEnvironmentConfiguration.Definitions.Add("USE_LOGGING_IN_SHIPPING=1");
UEBuildConfiguration.bUseLoggingInShipping = true;
}
But now it doesn’t work anymore, some1 got a clue?
Any luck with this? I’m having the same issue and need to use the /FORCE:MULTIPLE option.
Same Problem with /WHOLEARCHIVE here …
Any update here? I’m struggling with /WHOLEARCHIVE option too…