33using BinaryBuilder, Pkg
44
55name = " ColPack"
6- version = v " 0.4.2 "
6+ version = v " 0.4.3 "
77
88# Collection of sources required to complete build
99sources = [
10- GitSource (" https://github.com/amontoison/ColPack.git" , " 707282d64b11c7f29e87b05df5edca72d31ab05e " )
10+ GitSource (" https://github.com/amontoison/ColPack.git" , " b8487f1430d6a2d4d9704cd8cbbb9cd4c6882761 " )
1111]
1212
1313# Bash recipe for building across all platforms
@@ -18,17 +18,17 @@ autoreconf -vif
1818
1919mkdir build
2020cd build
21- ../configure --enable-examples --build=${MACHTYPE} --host=${target}
21+ ../configure --disable-openmp -- enable-examples --build=${MACHTYPE} --host=${target}
2222make -j${nproc}
2323
2424mkdir -p ${bindir}
2525cp ColPack${exeext} ${bindir}/ColPack${exeext}
2626
27- if [[ "${target}" == *apple* ]] || [[ "${target}" == *freebsd* ]]; then
28- LDFLAGS=-lomp
29- else
30- LDFLAGS=-lgomp
31- fi
27+ # if [[ "${target}" == *apple* ]] || [[ "${target}" == *freebsd* ]]; then
28+ # LDFLAGS=-lomp
29+ # else
30+ # LDFLAGS=-lgomp
31+ # fi
3232${CXX} -shared $(flagon -Wl,--whole-archive) libcolpack.a $(flagon -Wl,--no-whole-archive) ${LDFLAGS} -o ${libdir}/libcolpack.${dlext}
3333"""
3434
@@ -45,11 +45,12 @@ products = [
4545
4646# Dependencies that must be installed before this package can be built
4747dependencies = Dependency[
48- # For OpenMP we use libomp from `LLVMOpenMP_jll` where we use LLVM as compiler (BSD systems),
48+ Dependency (PackageSpec (name= " CompilerSupportLibraries_jll" , uuid= " e66e0078-7015-5450-92f7-15fbd957f2ae" ))
49+ # If we recompile ColPack with OpenMP, we use libomp from `LLVMOpenMP_jll` where we use LLVM as compiler (BSD systems),
4950 # and libgomp from `CompilerSupportLibraries_jll` everywhere else.
50- Dependency (PackageSpec (name= " CompilerSupportLibraries_jll" , uuid= " e66e0078-7015-5450-92f7-15fbd957f2ae" ); platforms= filter (! Sys. isbsd, platforms)),
51- Dependency (PackageSpec (name= " LLVMOpenMP_jll" , uuid= " 1d63c593-3942-5779-bab2-d838dc0a180e" ); platforms= filter (Sys. isbsd, platforms))
51+ # Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae"); platforms=filter(!Sys.isbsd, platforms)),
52+ # Dependency(PackageSpec(name="LLVMOpenMP_jll", uuid="1d63c593-3942-5779-bab2-d838dc0a180e"); platforms=filter(Sys.isbsd, platforms))
5253]
5354
5455# Build the tarballs, and possibly a `build.jl` as well.
55- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v " 8.1.0 " , julia_compat= " 1.6" , clang_use_lld= false )
56+ build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; julia_compat= " 1.6" , clang_use_lld= false )
0 commit comments