ports/devel/glog/patches/patch-src_symbolize_unittest_cc

16 lines
677 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
This test causes problems on (at least) sparc64 and mips64. It appears they try
to call this even though those functions don't exist for those archs.
Index: src/symbolize_unittest.cc
--- src/symbolize_unittest.cc.orig
+++ src/symbolize_unittest.cc
@@ -424,7 +424,7 @@ int main(int argc, char **argv) {
InitGoogleLogging(argv[0]);
InitGoogleTest(&argc, argv);
#if defined(HAVE_SYMBOLIZE) && defined(HAVE_STACKTRACE)
-# if defined(__ELF__)
+# if defined(__ELF__) && defined(TEST_X86_32_AND_64)
// We don't want to get affected by the callback interface, that may be
// used to install some callback function at InitGoogle() time.
InstallSymbolizeCallback(NULL);