File torchvision-0_17_1-fix-build.patch of Package python-torchvision-rocm

--- setup.py.old	2024-11-03 16:51:21.891305430 +0100
+++ setup.py	2024-11-03 16:52:16.875113504 +0100
@@ -116,7 +116,7 @@
 
 
 def get_macros_and_flags():
-    define_macros = []
+    define_macros = [("GLOG_USE_GLOG_EXPORT", None)]
     extra_compile_args = {"cxx": []}
     if BUILD_CUDA_SOURCES:
         if IS_ROCM:
@@ -488,6 +488,7 @@
                 ],
                 extra_compile_args=["-std=c++17"] if os.name != "nt" else ["/std:c++17", "/MP"],
                 extra_link_args=["-std=c++17" if os.name != "nt" else "/std:c++17"],
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)],
             )
         )
 
@@ -536,6 +537,7 @@
                     "nppicc",
                 ],
                 extra_compile_args=extra_compile_args,
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)],
             )
         )
 
openSUSE Build Service is sponsored by