Commit 0e6ff94f authored by Ralf Mueller's avatar Ralf Mueller
Browse files

for static build on cygwin machine (as much as possible); remove double cygwin...

for static build on cygwin machine (as much as possible); remove double cygwin setup from config/default
parent 7152540f
...@@ -116,6 +116,7 @@ case "${HOSTNAME}" in ...@@ -116,6 +116,7 @@ case "${HOSTNAME}" in
# --with-magics=/Users/m214003/local/Magics-2.18.14nio \ # --with-magics=/Users/m214003/local/Magics-2.18.14nio \
fi fi
;; ;;
# win7 based cygwin virtual machine
cdo4windows-cyg) cdo4windows-cyg)
CDOLIBS="--with-netcdf=/usr/local \ CDOLIBS="--with-netcdf=/usr/local \
--with-hdf5=/usr/local \ --with-hdf5=/usr/local \
...@@ -134,6 +135,7 @@ case "${HOSTNAME}" in ...@@ -134,6 +135,7 @@ case "${HOSTNAME}" in
else else
${CONFPATH}configure --prefix=$HOME/local \ ${CONFPATH}configure --prefix=$HOME/local \
--enable-maintainer-mode \ --enable-maintainer-mode \
--enable-all-static \
$CDOLIBS \ $CDOLIBS \
CC=gcc CFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \ CC=gcc CFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \
LDFLAGS='-L/usr/local/lib' \ LDFLAGS='-L/usr/local/lib' \
...@@ -420,27 +422,6 @@ case "${HOSTNAME}" in ...@@ -420,27 +422,6 @@ case "${HOSTNAME}" in
AR="ar -X 64" LDFLAGS="-brtl" \ AR="ar -X 64" LDFLAGS="-brtl" \
CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qstrict -qarch=auto -qtune=auto -qsmp=omp -DHAVE_MMAP -qthreaded" CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qstrict -qarch=auto -qtune=auto -qsmp=omp -DHAVE_MMAP -qthreaded"
;; ;;
# win7 based cygwin virtual machine
cdo4windows-cyg)
if test "$COMP" = gcc ; then
${CONFPATH}configure \
--with-netcdf \
--with-hdf5 \
--with-proj \
--with-fftw3 \
--with-udunits \
CC=gcc CFLAGS='-g -Wall -O3'
elif test "$COMP" = g++ ; then
${CONFPATH}configure \
--with-netcdf \
--with-hdf5 \
--with-proj \
--with-fftw3 \
--with-udunits \
--enable-cxx \
CC=gcc CXX=g++ CFLAGS='-g -Wall -O3' CXXFLAGS='-g -Wall -O3'
fi
;;
*) *)
echo "configuration for hostname $HOSTNAME not found!" echo "configuration for hostname $HOSTNAME not found!"
;; ;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment