From fc4dc9ddfaeb623aef41fb7a55d766b3bcbb11de Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 5 Sep 2018 13:37:48 +0200 Subject: [PATCH] netcdf: Configure for a verbose, static build --- netcdf.be0 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/netcdf.be0 b/netcdf.be0 index b06c06790..153dfe444 100755 --- a/netcdf.be0 +++ b/netcdf.be0 @@ -10,8 +10,24 @@ mee_patch() { bee_patch } +# +# NOTE: to achieve a similar build result with enclosed autotools, one needs only: +# +# CFLAGS='-fPIC -O2' ac_cv_search_H5DSis_scale=-lhdf5_hl ac_cv_search_H5Fflush='-lhdf5 -ldl' \ +# ./configure --prefix=/dev/shm/netcdf-4.6.1-test --enable-shared=no --disable-silent-rules +# +# The above is so beautiful that I've felt a strong urge to preserve it in this bee file :) +# + mee_configure() { - bee_configure + bee_configure \ + -DCMAKE_C_FLAGS=-fPIC \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=RELEASE \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DENABLE_TESTS=OFF + } mee_build() {