Skip to content

Commit

Permalink
netcdf: Configure for a verbose, static build
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas authored and donald committed Sep 10, 2018
1 parent de071e7 commit fc4dc9d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion netcdf.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fc4dc9d

Please sign in to comment.