Ticket #66346: patch-meson-BSD-nm.diff

File patch-meson-BSD-nm.diff, 611 bytes (added by ballapete (Peter "Pete" Dyballa), 2 years ago)

Patch to convert Linux style arguments into BSD styles arguments for nm (/usr/bin/nm)

  • mesonbuild/scripts/symbolextractor.py

    old new  
    146146            break
    147147    result = [arr[match + 2], arr[match + 5]] # Libreoffice stores all 5 lines but the others seem irrelevant.
    148148    # Get a list of all symbols exported
    149     output = call_tool('nm', ['--extern-only', '--defined-only',
    150                               '--format=posix', libfilename])
     149    output = call_tool('nm', ['-a', '-U', '-P', libfilename])
    151150    if not output:
    152151        dummy_syms(outfilename)
    153152        return