alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

0001-no-libatomic.patch (923B)


      1 --- a/node.gyp
      2 +++ b/node.gyp
      3 @@ -510,9 +510,6 @@
      4            '-Wl,-bnoerrmsg',
      5          ],
      6        }],
      7 -      ['OS=="linux" and clang==1', {
      8 -        'libraries': ['-latomic'],
      9 -      }],
     10      ],
     11    },
     12  
     13 --- a/tools/v8_gypfiles/v8.gyp
     14 +++ b/tools/v8_gypfiles/v8.gyp
     15 @@ -1306,14 +1306,6 @@
     16          ['v8_postmortem_support', {
     17            'dependencies': ['postmortem-metadata#target'],
     18          }],
     19 -        # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
     20 -        # to implement atomic memory access.
     21 -        # Clang needs it for some atomic operations (https://clang.llvm.org/docs/Toolchain.html#atomics-library).
     22 -        ['(OS=="linux" and clang==1) or (v8_current_cpu in ["mips64", "mips64el", "arm", "riscv64", "loong64"])', {
     23 -          'link_settings': {
     24 -            'libraries': ['-latomic', ],
     25 -          },
     26 -        }],
     27        ],
     28      },  # v8_base_without_compiler
     29      {