[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/mesa][debian-experimental] rules: disable TLSDESC for loong64 for now



Title: GitLab

Timo Aaltonen pushed to branch debian-experimental at X Strike Force / lib / mesa

Commits:

  • e1dd2ad1
    by WANG Xuerui at 2024-08-16T12:26:30+08:00
    rules: disable TLSDESC for loong64 for now
    
    The feature is relatively new and occasionally crashes the BFD linker.
    Before we are able to debug and fix the problem upstream, disable the
    TLSDESC optimization in Mesa for loong64 for now.
    
    See: https://github.com/loongson-community/discussions/issues/64
    

1 changed file:

Changes:

  • debian/rules
    ... ... @@ -25,6 +25,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
    25 25
       # Workaround for a variant of LP: #725126
    
    26 26
       DEB_CFLAGS_MAINT_APPEND += -fno-optimize-sibling-calls
    
    27 27
       DEB_CXXFLAGS_MAINT_APPEND += -fno-optimize-sibling-calls
    
    28
    +else ifneq (,$(filter $(DEB_HOST_ARCH), loong64))
    
    29
    +  # Workaround loong64 BFD linker crash related to TLSDESC
    
    30
    +  DEB_CFLAGS_MAINT_APPEND += -mtls-dialect=trad
    
    31
    +  DEB_CXXFLAGS_MAINT_APPEND += -mtls-dialect=trad
    
    28 32
     else ifneq (,$(filter $(DEB_HOST_ARCH), m68k))
    
    29 33
       # This library has huge jump tables: Debian #1067207
    
    30 34
       DEB_CFLAGS_MAINT_APPEND += -mlong-jump-table-offsets
    


  • Reply to: