JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr Yf:@sdZddlZddlZddlZddlmZddlmZddlm Z m Z m Z ddl m Z mZmZmZddlmZejdkrddlZGd d d e ZdS) a9distutils.unixccompiler Contains the UnixCCompiler class, a subclass of CCompiler that handles the "typical" Unix-style command-line C compiler: * macros defined with -Dname[=value] * macros undefined with -Uname * include search directories specified with -Idir * libraries specified with -lllib * library search directories specified with -Ldir * compile handled by 'cc' (or similar) executable with -c option: compiles .c to .o * link static library handled by 'ar' command (possibly with 'ranlib') * link shared library handled by 'cc -shared' N) sysconfig)newer) CCompilergen_preprocess_optionsgen_lib_options)DistutilsExecError CompileErrorLibError LinkError)logdarwincseZdZdZddddgddgddgddd gd dgd d d gddiZejdddkrdgedr?r%r'r*rZ EXECUTABLErrrbasenamer4r5r6r7r+rr r r@)rZ target_descr?rBr;r r!r"Zexport_symbolsr@r-r.Z build_temprAr/Zlib_optsZld_argsZlinkerir2r#r#r$linksH       "zUnixCCompiler.linkcCsd|S)Nz-Lr#)rdirr#r#r$library_dir_optionsz UnixCCompiler.library_dir_optioncCsd|kpd|kS)Ngcczg++r#)rZ compiler_namer#r#r$_is_gccszUnixCCompiler._is_gcccCs tjjtjd}tjdddkr<d|Stjdddkr]d|Stjddd kr|j|rd d|gSd d|gStjddd kstjddd krd|gS|j|rtjddkr d|Sd|Snd|SdS)NCCrr z-LZfreebsdz -Wl,-rpath=zhp-uxz-Wl,+sz+sZirix646Zosf1V5z-rpathGNULDyesz-Wl,--enable-new-dtags,-Rz-Wl,-Rz-R)r(r)rLrrr4r5rR)rrOrr#r#r$runtime_library_dir_options 2  z(UnixCCompiler.runtime_library_dir_optioncCsd|S)Nz-lr#)rlibr#r#r$library_option szUnixCCompiler.library_optioncCs.|j|dd}|j|dd}|j|dd}|j|dd}tjdkrtjd}tjd|} | dkrd } n| jd } x|D]w} tj j | |} tj j | |} tj j | |}tj j | |}tjdkr| j d sF| j d r| j d  rtj j | | d d|} tj j | | d d|} tj j | | d d|}tj j | | d d|}tj j | r| Stj j |r|Stj j | r| Stj j |r|SqWdS)NZlib_typeshareddylib xcode_stubstaticr CFLAGSz-isysroot\s+(\S+)/rEz/System/z/usr/z /usr/local/) r=r4r5rrresearchgroupr(r)rK startswithexists)rdirsrYr@Zshared_fZdylib_fZ xcode_stub_fZstatic_fZcflagsmZsysrootrOr[r\r^r]r#r#r$find_library_file s>   """"zUnixCCompiler.find_library_file)__name__ __module__ __qualname__Z compiler_typeZ executablesr4r5Zsrc_extensionsZ obj_extensionZstatic_lib_extensionZshared_lib_extensionZdylib_lib_extensionZxcode_stub_lib_extensionZstatic_lib_formatZshared_lib_formatZdylib_lib_formatZxcode_stub_lib_formatZ exe_extensionrr3r:rCrNrPrRrXrZrhr#r#)rr$r -sF            6   , r )__doc__r(r4raZ distutilsrZdistutils.dep_utilrZdistutils.ccompilerrrrZdistutils.errorsrrr r r r5r6r r#r#r#r$s$"