]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
make: add top-level libcommon dependency
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:10:53 +0000 (12:10 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:58:37 +0000 (12:58 -0800)
On OSX there is consistently a problem with resolving pipe_cloexec and other
symbols through indirect libtool dependencies (below libglobal has a dependency
on libcommon). This makes the dependency top-level for most executables.

  CXXLD    ceph_test_timers
Undefined symbols for architecture x86_64:
  "_pipe_cloexec", referenced from:
      AdminSocket::create_shutdown_pipe(int*, int*) in libglobal.a(admin_socket.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/Makefile-env.am

index ef8a8f3b541ef94bafb8204720cdf224b6e181fe..5e914f403e93fe1799bf4196133fdf9913e27486 100644 (file)
@@ -178,7 +178,7 @@ LIBMDS += $(LIBPERFGLUE)
 LIBOS += -lleveldb -lsnappy
 
 # Use this for binaries requiring libglobal
-CEPH_GLOBAL = $(LIBGLOBAL) $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXTRALIBS)
+CEPH_GLOBAL = $(LIBGLOBAL) $(LIBCOMMON) $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXTRALIBS)
 
 # This is set by [lib]/Makefile.am and used for build tests
 LIBCOMMON_DEPS =