Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
gcc6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-pablo-vielma committed Nov 15, 2018
1 parent 469bb3b commit 85b903e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_tarballs.jl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ for path in ${LD_LIBRARY_PATH//:/ }; do
done
mkdir build
cd build/
export LDFLAGS="-L${prefix}/lib -lcoinglpk"
export CXXFLAGS="-std=c++11"
../configure --prefix=$prefix --with-pic --disable-pkg-config --host=${target} --enable-shared --disable-static --enable-dependency-linking lt_cv_deplibs_check_method=pass_all \
--with-glpk-lib="-L${prefix}/lib -lcoinglpk" --with-glpk-incdir="$prefix/include/coin/ThirdParty" \
--with-lapack="-L${prefix}/lib -lcoinlapack" \
--with-coinutils-lib="-L${prefix}/lib -lCoinUtils" --with-coinutils-incdir="$prefix/include/coin" \
--with-blas="-L${prefix}/lib -lcoinblas"
--with-lapack="-L${prefix}/lib -lcoinlapack" \
--with-blas="-L${prefix}/lib -lcoinblas"
make -j${nproc}
make install
"""

#export LDFLAGS="-L${prefix}/lib -lCoinUtils -lcoinglpk"
#--with-glpk-lib="-L${prefix}/lib -lcoinglpk" --with-glpk-incdir="$prefix/include/coin/ThirdParty" \
# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [
Expand All @@ -57,20 +57,20 @@ platforms = [

# The products that we will ensure are always built
products(prefix) = [
LibraryProduct(prefix, "libOsiGlpk", :libOsiGlpk),
LibraryProduct(prefix, "libOsi", :libOsi),
LibraryProduct(prefix, "libOsiCommonTests", :libOsiCommonTests)
]
platforms = expand_gcc_versions(platforms)
# To fix gcc4 bug in Windows
push!(platforms, Windows(:i686,compiler_abi=CompilerABI(:gcc6)))
push!(platforms, Windows(:x86_64,compiler_abi=CompilerABI(:gcc6)))

# Dependencies that must be installed before this package can be built
dependencies = [
"https://github.com/JuliaOpt/COINGLPKBuilder/releases/download/v1.10.5-1/build_COINGLPKBuilder.v1.10.5.jl",
"https://github.com/JuliaOpt/CoinUtilsBuilder/releases/download/v2.10.14-1/build_CoinUtilsBuilder.v2.10.14.jl",
"https://github.com/JuliaOpt/COINBLASBuilder/releases/download/v1.4.6-1/build_COINBLASBuilder.v1.4.6.jl",
"https://github.com/JuliaOpt/COINLapackBuilder/releases/download/v1.5.6-1/build_COINLapackBuilder.v1.5.6.jl"
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit 85b903e

Please sign in to comment.