1
Description: use CXX and LD-flags, proposed by build environment instead
2
of hardcoded. Fix linkage problem with fftw3.
3
Author: Anton Gladky <gladk@debian.org>
4
Last-Update: 2014-02-13
6
--- a/src/MAKE/Makefile.openmpi
7
+++ b/src/MAKE/Makefile.openmpi
9
# specify flags and libraries needed for your compiler
13
- -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized
14
+CCFLAGS = -Wall $(shell dpkg-buildflags --get CXXFLAGS) -fopenmp
21
+LINKFLAGS = -O $(shell dpkg-buildflags --get LDFLAGS)
22
+LIB = -lstdc++ -fopenmp
27
# LAMMPS ifdef settings, OPTIONAL
28
# see possible settings in doc/Section_start.html#2_2 (step 4)
30
-LMP_INC = -DLAMMPS_GZIP
31
+LMP_INC = -DLAMMPS_GZIP -DLAMMPS_JPEG
33
# MPI library, REQUIRED
34
# see discussion in doc/Section_start.html#2_2 (step 5)
36
# PATH = path for FFT library
37
# LIB = name of FFT library
40
+FFT_INC = -DFFT_FFTW3
45
# JPEG and/or PNG library, OPTIONAL
46
# see discussion in doc/Section_start.html#2_2 (step 7)
54
# ---------------------------------------------------------------------
55
# build rules and dependencies