]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: Use LDADD not LDFLAGS to bring in -lkeyutils.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 29 Mar 2011 23:31:29 +0000 (16:31 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 29 Mar 2011 23:31:29 +0000 (16:31 -0700)
Without this, flab (gcc 4.2.4) failed with:

libtool: link: gcc -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -g -O2 -o mount.ceph mount.ceph.o armor.o  -lkeyutils /usr/lib/libcrypto++.so
/usr/lib/libcrypto++.so: undefined reference to `pthread_key_create'
/usr/lib/libcrypto++.so: undefined reference to `pthread_getspecific'
/usr/lib/libcrypto++.so: undefined reference to `pthread_key_delete'
/usr/lib/libcrypto++.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/Makefile.am

index 734043586ce54528eaf503ec66884a54996f2962..a5bd5c99e08de60451484b472d69e9cb1538a9c6 100644 (file)
@@ -97,7 +97,7 @@ osdmaptool_LDADD = libcrush.a libcommon.a -lpthread -lm $(CRYPTO_LIBS) $(EXTRALI
 bin_PROGRAMS += monmaptool crushtool osdmaptool
 
 mount_ceph_SOURCES = mount/mount.ceph.c common/armor.c
-mount_ceph_LDFLAGS = -lkeyutils
+mount_ceph_LDADD = -lkeyutils
 sbin_PROGRAMS += mount.ceph
 
 # user tools