Ticket #60165: nm_behave_MacOSX.patch

File nm_behave_MacOSX.patch, 605 bytes (added by ballapete (Peter "Pete" Dyballa), 4 years ago)

Patch to make nm work on older Macs

  • 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', ['-g', '-P', libfilename])
    151150    if not output:
    152151        dummy_syms(outfilename)
    153152        return