diff options
Diffstat (limited to 'ports/openimageio/fix_static_build.patch')
| -rw-r--r-- | ports/openimageio/fix_static_build.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/openimageio/fix_static_build.patch b/ports/openimageio/fix_static_build.patch new file mode 100644 index 000000000..14b912b9a --- /dev/null +++ b/ports/openimageio/fix_static_build.patch @@ -0,0 +1,13 @@ +diff --git a/src/cmake/compiler.cmake b/src/cmake/compiler.cmake +index 4f4f31c..a18895e 100644 +--- a/src/cmake/compiler.cmake ++++ b/src/cmake/compiler.cmake +@@ -451,7 +451,7 @@ set (EXTRA_DSO_LINK_ARGS "" CACHE STRING "Extra command line definitions when bu + # + option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON) + if (NOT BUILD_SHARED_LIBS) +- add_definitions (-D${PROJECT_NAME}_STATIC_DEFINE=1) ++ add_definitions (-D${PROJECT_NAME}_STATIC_DEFINE=1 -DOIIO_STATIC_DEFINE=1) + endif () + + |
