From 6b8b7c14a64b23ee3380a04cfbc7723327d1e16c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 29 Jun 2015 14:36:36 -0400 Subject: [PATCH] compile qm/mm library with -fPIC to be compatible with shared library builds --- lib/qmmm/Makefile.gfortran | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/qmmm/Makefile.gfortran b/lib/qmmm/Makefile.gfortran index 743bd5cef0..c61f375988 100644 --- a/lib/qmmm/Makefile.gfortran +++ b/lib/qmmm/Makefile.gfortran @@ -11,7 +11,7 @@ sinclude $(QETOPDIR)/make.sys # FLAGS for c++ OpenMPI when QE was compiled with GNU Fortran 4.x MPICXX=mpicxx -MPICXXFLAGS=-DOMPI_SKIP_MPICXX=1 -O2 -Wall -g \ +MPICXXFLAGS=-DOMPI_SKIP_MPICXX=1 -O2 -Wall -g -fPIC\ -I../../src -I$(QETOPDIR)/COUPLE/include MPILIBS=-fopenmp -lgfortran -ldl -ljpeg -lpng -lz -lmpi_f77 -lmpi