Currently it is not possible to package UE project in Linux if it uses any library (such as rpclib) that uses thread local variables… Even though this is perfectly valid thing to do in C++11, you will end up with following error spitted out by Unreal Build Tool:
ATHelper: Packaging (Linux): UnrealBuildTool: /data/UnrealProjects/Blocks/Plugins/AirSim/Source/AirLib/deps/rpclib/lib/librpc.a(this_handler.cc.o): In function rpc::this_handler()': UATHelper: Packaging (Linux): UnrealBuildTool: /home/user/Research/AirSim/external/rpclib/lib/rpc/this_handler.cc:10: undefined reference to__cxa_thread_atexit'
The solution to this is described in this StackOverflow thread which is basically make sure you include linker flag -lsupc++. Would it be possible to update Unreal Build tool with this change?