|
1 | 1 | #!/usr/bin/env bash
|
2 | 2 | #
|
3 |
| -# BLIS |
| 3 | +# BLIS |
4 | 4 | # An object-based framework for developing high-performance BLAS-like
|
5 | 5 | # libraries.
|
6 | 6 | #
|
@@ -143,6 +143,12 @@ print_usage()
|
143 | 143 | echo " Disable (enabled by default) building BLIS as a shared"
|
144 | 144 | echo " library. If the shared library build is disabled, the"
|
145 | 145 | echo " static library build must remain enabled."
|
| 146 | + echo " " |
| 147 | + echo " --enable-rpath, --disable-rpath" |
| 148 | + echo " " |
| 149 | + echo " Enable (disabled by default) setting an install_name for" |
| 150 | + echo " dynamic libraries on macOS which starts with @rpath rather" |
| 151 | + echo " than the absolute install path." |
146 | 152 | echo " "
|
147 | 153 | echo " -e SYMBOLS, --export-shared[=SYMBOLS]"
|
148 | 154 | echo " "
|
@@ -852,7 +858,7 @@ build_kconfig_registry()
|
852 | 858 | assign_key_value "kconfig_registry" "${kernel}" "${newvalue}"
|
853 | 859 |
|
854 | 860 | done
|
855 |
| - |
| 861 | + |
856 | 862 | done
|
857 | 863 | }
|
858 | 864 |
|
@@ -2050,6 +2056,7 @@ main()
|
2050 | 2056 | enable_arg_max_hack='no'
|
2051 | 2057 | enable_static='yes'
|
2052 | 2058 | enable_shared='yes'
|
| 2059 | + enable_rpath='no' |
2053 | 2060 | export_shared='public'
|
2054 | 2061 | enable_pba_pools='yes'
|
2055 | 2062 | enable_sba_pools='yes'
|
@@ -2175,6 +2182,12 @@ main()
|
2175 | 2182 | disable-shared)
|
2176 | 2183 | enable_shared='no'
|
2177 | 2184 | ;;
|
| 2185 | + enable-rpath) |
| 2186 | + enable_rpath='yes' |
| 2187 | + ;; |
| 2188 | + disable-rpath) |
| 2189 | + enable_rpath='no' |
| 2190 | + ;; |
2178 | 2191 | export-shared=*)
|
2179 | 2192 | export_shared=${OPTARG#*=}
|
2180 | 2193 | ;;
|
@@ -2404,7 +2417,7 @@ main()
|
2404 | 2417 | fi
|
2405 | 2418 |
|
2406 | 2419 | echo "${script_name}: using '${found_cc}' C compiler."
|
2407 |
| - |
| 2420 | + |
2408 | 2421 | # Also check the compiler to see if we are (cross-)compiling for Windows
|
2409 | 2422 | if ${found_cc} -dM -E - < /dev/null 2> /dev/null | grep -q _WIN32; then
|
2410 | 2423 | is_win=yes
|
@@ -3162,7 +3175,7 @@ main()
|
3162 | 3175 |
|
3163 | 3176 | enable_sandbox_01=0
|
3164 | 3177 | fi
|
3165 |
| - |
| 3178 | + |
3166 | 3179 | # Check the method used for returning complex numbers
|
3167 | 3180 | if [ "x${complex_return}" = "xdefault" ]; then
|
3168 | 3181 | if [ -n "${FC}" ]; then
|
@@ -3193,7 +3206,7 @@ main()
|
3193 | 3206 | complex_return='gnu'
|
3194 | 3207 | fi
|
3195 | 3208 | fi
|
3196 |
| - |
| 3209 | + |
3197 | 3210 | if [ "x${complex_return}" = "xgnu" ]; then
|
3198 | 3211 | complex_return_intel01='0'
|
3199 | 3212 | elif [ "x${complex_return}" = "xintel" ]; then
|
@@ -3346,14 +3359,15 @@ main()
|
3346 | 3359 | | sed -e "s/@enable_arg_max_hack@/${enable_arg_max_hack}/g" \
|
3347 | 3360 | | sed -e "s/@enable_static@/${enable_static}/g" \
|
3348 | 3361 | | sed -e "s/@enable_shared@/${enable_shared}/g" \
|
| 3362 | + | sed -e "s/@enable_rpath@/${enable_rpath}/g" \ |
3349 | 3363 | | sed -e "s/@export_shared@/${export_shared}/g" \
|
3350 | 3364 | | sed -e "s/@enable_blas@/${enable_blas}/g" \
|
3351 | 3365 | | sed -e "s/@enable_cblas@/${enable_cblas}/g" \
|
3352 | 3366 | | sed -e "s/@enable_memkind@/${enable_memkind}/g" \
|
3353 | 3367 | | sed -e "s/@pragma_omp_simd@/${pragma_omp_simd}/g" \
|
3354 | 3368 | | sed -e "s/@sandbox@/${sandbox}/g" \
|
3355 | 3369 | > "${config_mk_out_path}"
|
3356 |
| - |
| 3370 | + |
3357 | 3371 |
|
3358 | 3372 | # Begin substituting information into the bli_config_h_in file, outputting
|
3359 | 3373 | # to bli_config_h_out. NOTE: We use perl instead of sed because the version
|
|
0 commit comments