Package: src:openexr openexr defines a clean API on windows, we should to the same on linux:
$ grep -r declspec * IlmImf/ImfExport.h: #define IMF_EXPORT __declspec(dllexport) IlmImf/ImfExport.h: #define IMF_EXPORT_CONST extern __declspec(dllexport) IlmImf/ImfExport.h: #define IMF_EXPORT __declspec(dllimport) IlmImf/ImfExport.h: #define IMF_EXPORT_CONST extern __declspec(dllimport) We will need to switch to cmake at this point.

