Ticket #631: sun-c++-xldscope-symbolic.patch

File sun-c++-xldscope-symbolic.patch, 833 bytes (added by Olly Betts, 9 years ago)

Patch to use -xldscope-symbolic for Sun C++

  • xapian-core/configure.ac

    commit 73b7aa5a000bb3b512026a72abe0aeb4bb10a95a
    Author: Olly Betts <olly@survex.com>
    Date:   Mon Nov 9 15:39:06 2015 +1300
    
        Try -xldscope=symbolic for Sun C++
        
        This flag is roughly equivalent to -Bsymbolic-functions.
    
    diff --git a/xapian-core/configure.ac b/xapian-core/configure.ac
    index 1f9fd412..0404090e 100644
    a b else  
    11521152fi
    11531153
    11541154XAPIAN_TEST_LINKER_FLAG([-Bsymbolic-functions], [symbolic_functions],
    1155   [XAPIAN_LDFLAGS="$XAPIAN_LDFLAGS $flag"])
     1155  [XAPIAN_LDFLAGS="$XAPIAN_LDFLAGS $flag"],
     1156  dnl Sun C++ has -xldscope=symbolic.
     1157  [XAPIAN_TEST_LINKER_FLAG([-xldscope=symbolic], [xldscope_symbolics],
     1158    [XAPIAN_LDFLAGS="$XAPIAN_LDFLAGS $flag"])
     1159  ])
    11561160
    11571161FP_EXCESS_PRECISION=no
    11581162AC_MSG_CHECKING([whether to use SSE instructions on x86])