diff --git a/lib/awpmd/Makefile.openmpi b/lib/awpmd/Makefile.openmpi index d70754ef16..af74d36fac 100644 --- a/lib/awpmd/Makefile.openmpi +++ b/lib/awpmd/Makefile.openmpi @@ -33,7 +33,7 @@ OBJ = $(SRC:.cpp=.o) # the same MPI library that LAMMPS is built with CC = mpic++ -CCFLAGS = -O -Isystems/interact/TCP/ -Isystems/interact -Iivutils/include +CCFLAGS = -O -fPIC -Isystems/interact/TCP/ -Isystems/interact -Iivutils/include ARCHIVE = ar ARCHFLAG = -rc DEPFLAGS = -M