Skip to content

Commit

Permalink
[ColPack] Recompile with OpenMP (#8869)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Jun 11, 2024
1 parent d8e497d commit 1eefbc7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions C/ColPack/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@
using BinaryBuilder, Pkg

name = "ColPack"
version = v"0.3.0"
version = v"0.4.0"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/michel2323/ColPack.git", "b22020d3915abc06753fafe7005e539f11d46924")
GitSource("https://github.com/amontoison/ColPack.git", "114a6eb793f539edfe28a47af457c4a641f6ec16")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd ColPack/build/automake/
autoreconf -vif
mkdir build
cd build/
../configure --disable-examples --disable-openmp --prefix=${prefix} --build=${MACHTYPE} --host=${target} --disable-static --enable-shared
cd build
CC=gcc
CXX=g++
../configure --enable-examples --build=${MACHTYPE} --host=${target}
make -j${nproc}
make install
mkdir -p ${bindir}
cp ColPack${exeext} ${bindir}/ColPack${exeext}
g++ -shared $(flagon -Wl,--whole-archive) libcolpack.a $(flagon -Wl,--no-whole-archive) -lgomp -o ${libdir}/libcolpack.${dlext}
"""

# These are the platforms we will build for by default, unless further
Expand All @@ -29,7 +35,8 @@ platforms = expand_cxxstring_abis(platforms)

# The products that we will ensure are always built
products = [
LibraryProduct("libColPack", :libcolpack)
LibraryProduct("libcolpack", :libcolpack),
ExecutableProduct("ColPack", :ColPack)
]

# Dependencies that must be installed before this package can be built
Expand Down

0 comments on commit 1eefbc7

Please sign in to comment.