Obey DSO standard
authorChristoph Junghans <junghans@votca.org>
Thu, 1 Nov 2012 20:54:35 +0000 (14:54 -0600)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 7 Nov 2012 17:33:45 +0000 (18:33 +0100)
Compiling the template in recent fedora will lead to:
ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO libm.so, so
try adding it to the linker command line
Hence we move -lm from Libs.private to Libs

Change-Id: I5e2c59bf62f950d06f3c708d22f6d2289babcacf

src/gmxlib/libgmx.pc.cmakein

index dd9f8ad718e03cace34de2c830af5e6a8c12db0a..3b4227907e411d21ee86beb2203b98e916dc8e9b 100644 (file)
@@ -6,7 +6,7 @@ Description: Gromacs default lib
 URL: http://www.gromacs.org
 Version: @PROJECT_VERSION@
 Requires:
-Libs.private: -lm @CMAKE_THREAD_LIBS_INIT@ @PKG_DL_LIBS@
-Libs: -L${libdir} -lgmx@GMX_LIBS_SUFFIX@
+Libs.private: @CMAKE_THREAD_LIBS_INIT@ @PKG_DL_LIBS@
+Libs: -L${libdir} -lgmx@GMX_LIBS_SUFFIX@ -lm
 Cflags: -I${includedir} @PKG_CFLAGS@