Build: patch OSL to avoid duplicate symbols in static libraries
This was revealed by CMake refactoring in #110394, with the solution identified by Ray Molenkamp. Upstream: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/pull/1709 Pull Request: https://projects.blender.org/blender/blender/pulls/110974
This commit is contained in:
committed by
Brecht Van Lommel
parent
15124fe490
commit
2afdc15709
@@ -75,3 +75,18 @@ index 46e4529..8e86486 100644
|
||||
return false;
|
||||
}
|
||||
|
||||
diff --git a/src/liboslexec/CMakeLists.txt b/src/liboslexec/CMakeLists.txt
|
||||
index 6bb0d175..19f13513 100644
|
||||
--- a/src/liboslexec/CMakeLists.txt
|
||||
+++ b/src/liboslexec/CMakeLists.txt
|
||||
@@ -148,7 +148,9 @@ file (GLOB exec_headers "*.h")
|
||||
file (GLOB compiler_headers "../liboslcomp/*.h")
|
||||
|
||||
FLEX_BISON ( osolex.l osogram.y oso lib_src exec_headers )
|
||||
-FLEX_BISON ( ../liboslcomp/osllex.l ../liboslcomp/oslgram.y osl lib_src compiler_headers )
|
||||
+if (BUILD_SHARED_LIBS)
|
||||
+ FLEX_BISON ( ../liboslcomp/osllex.l ../liboslcomp/oslgram.y osl lib_src compiler_headers )
|
||||
+endif()
|
||||
|
||||
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS" )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user