|  | 
| 82 | 82 | end | 
| 83 | 83 | 
 | 
| 84 | 84 | function __init__() | 
| 85 |  | -    global libamd_handle = dlopen(libamd) | 
| 86 |  | -    global libamd_path = dlpath(libamd_handle) | 
| 87 |  | -    global libbtf_handle = dlopen(libbtf) | 
| 88 |  | -    global libbtf_path = dlpath(libbtf_handle) | 
| 89 |  | -    global libcamd_handle = dlopen(libcamd) | 
| 90 |  | -    global libcamd_path = dlpath(libcamd_handle) | 
| 91 |  | -    global libccolamd_handle = dlopen(libccolamd) | 
| 92 |  | -    global libccolamd_path = dlpath(libccolamd_handle) | 
| 93 |  | -    global libcholmod_handle = dlopen(libcholmod) | 
| 94 |  | -    global libcholmod_path = dlpath(libcholmod_handle) | 
| 95 |  | -    global libcolamd_handle = dlopen(libcolamd) | 
| 96 |  | -    global libcolamd_path = dlpath(libcolamd_handle) | 
| 97 |  | -    global libklu_handle = dlopen(libklu) | 
| 98 |  | -    global libklu_path = dlpath(libklu_handle) | 
| 99 |  | -    global libldl_handle = dlopen(libldl) | 
| 100 |  | -    global libldl_path = dlpath(libldl_handle) | 
| 101 |  | -    global librbio_handle = dlopen(librbio) | 
| 102 |  | -    global librbio_path = dlpath(librbio_handle) | 
| 103 |  | -    global libspqr_handle = dlopen(libspqr) | 
| 104 |  | -    global libspqr_path = dlpath(libspqr_handle) | 
| 105 |  | -    global libsuitesparseconfig_handle = dlopen(libsuitesparseconfig) | 
| 106 |  | -    global libsuitesparseconfig_path = dlpath(libsuitesparseconfig_handle) | 
| 107 |  | -    global libumfpack_handle = dlopen(libumfpack) | 
| 108 |  | -    global libumfpack_path = dlpath(libumfpack_handle) | 
|  | 85 | +    if Base.USE_GPL_LIBS | 
|  | 86 | +        global libamd_handle = dlopen(libamd) | 
|  | 87 | +        global libamd_path = dlpath(libamd_handle) | 
|  | 88 | +        global libbtf_handle = dlopen(libbtf) | 
|  | 89 | +        global libbtf_path = dlpath(libbtf_handle) | 
|  | 90 | +        global libcamd_handle = dlopen(libcamd) | 
|  | 91 | +        global libcamd_path = dlpath(libcamd_handle) | 
|  | 92 | +        global libccolamd_handle = dlopen(libccolamd) | 
|  | 93 | +        global libccolamd_path = dlpath(libccolamd_handle) | 
|  | 94 | +        global libcholmod_handle = dlopen(libcholmod) | 
|  | 95 | +        global libcholmod_path = dlpath(libcholmod_handle) | 
|  | 96 | +        global libcolamd_handle = dlopen(libcolamd) | 
|  | 97 | +        global libcolamd_path = dlpath(libcolamd_handle) | 
|  | 98 | +        global libklu_handle = dlopen(libklu) | 
|  | 99 | +        global libklu_path = dlpath(libklu_handle) | 
|  | 100 | +        global libldl_handle = dlopen(libldl) | 
|  | 101 | +        global libldl_path = dlpath(libldl_handle) | 
|  | 102 | +        global librbio_handle = dlopen(librbio) | 
|  | 103 | +        global librbio_path = dlpath(librbio_handle) | 
|  | 104 | +        global libspqr_handle = dlopen(libspqr) | 
|  | 105 | +        global libspqr_path = dlpath(libspqr_handle) | 
|  | 106 | +        global libsuitesparseconfig_handle = dlopen(libsuitesparseconfig) | 
|  | 107 | +        global libsuitesparseconfig_path = dlpath(libsuitesparseconfig_handle) | 
|  | 108 | +        global libumfpack_handle = dlopen(libumfpack) | 
|  | 109 | +        global libumfpack_path = dlpath(libumfpack_handle) | 
|  | 110 | +    end | 
| 109 | 111 |     global artifact_dir = dirname(Sys.BINDIR) | 
| 110 | 112 | end | 
| 111 | 113 | 
 | 
|  | 
0 commit comments