Ignore:
Timestamp:
Jan 9, 2022 6:39:00 PM (9 months ago)
Author:
toby
Message:

deal with .so files not working in upgraded OS on M1 Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r5132 r5133  
    1111import glob
    1212import subprocess
    13 import numpy as np
    1413#==========================================================================================
    1514def is_exe(fpath):
     
    129128      sys.exit()
    130129elif sys.platform == "darwin":
    131     LDFLAGS = '-undefined dynamic_lookup -bundle'
    132     SDKROOT = os.environ['SDKROOT']
     130    if 'arm' in platform.machine():
     131        LDFLAGS = '-undefined dynamic_lookup -bundle -rpath ./ -mmacosx-version-min=11.1'
     132        # I am not sure I completely understand the -rpath & -mmacosx-version-min options,
     133        # but thet seem to work; this probably needs to be tested more
     134    else:
     135        LDFLAGS = '-undefined dynamic_lookup -bundle'
     136    SDKROOT = os.environ.get('SDKROOT','')
    133137    F2PYsuffix = '.so'
    134138elif sys.platform.startswith("linux"):
Note: See TracChangeset for help on using the changeset viewer.