Created
November 26, 2022 06:39
-
-
Save shinyquagsire23/1e3d38940d7381181ff88f11a5550547 to your computer and use it in GitHub Desktop.
OpenXR-SDK macOS loader Patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |
index 3da42ae..2f54680 100644 | |
--- a/src/CMakeLists.txt | |
+++ b/src/CMakeLists.txt | |
@@ -410,7 +410,7 @@ if(NOT MSVC) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLAG}") | |
endif() | |
endforeach() | |
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") | |
+ #set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") | |
endif() | |
if(ANDROID) | |
diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt | |
index fc4983a..3b36466 100644 | |
--- a/src/loader/CMakeLists.txt | |
+++ b/src/loader/CMakeLists.txt | |
@@ -268,7 +268,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | |
# Make build depend on the version script/export map | |
target_sources(openxr_loader PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/openxr-loader.map) | |
# Add the linker flag. | |
- set_target_properties(openxr_loader PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/openxr-loader.map") | |
+ #set_target_properties(openxr_loader PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/openxr-loader.map") | |
# For GCC version 7.1 or greater, we need to disable the implicit fallthrough warning since | |
# there's no consistent way to satisfy all compilers until they all accept the C++17 standard | |
if(CMAKE_COMPILER_IS_GNUCC AND NOT (CMAKE_CXX_COMPILER_VERSION LESS 7.1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment