Hi,
DirectX is a Microsoft technology that is designed Only for Microsoft Windows.(as far as I've known for 15 years).
Now, as for your legacy DirectX version, you may want to consider writing a Windows 10 compatible C++ class that used WIndows Media Foundation, which is the DirectX equivalent, for WIndows 10.
Once I know more about the DirectX function calls made by your legacy code, and which version of DirectX you are using in the older version, I may be able to assist you - to target Windows 10 (not Linux).