Skip to contentSkip to conversation

rgw: add -lresolv flags to Makefile.am

PATCH In review Chen Baozi 2 participants 2 messages Nov 18, 2012

lore
Share & tools
lore

Chen Baozi

author
#0 lore raw

PATCH 1/1 rgw: add -lresolv flags to Makefile.am

radosgw depends on libresolv since since the commit 951c6be. So we need to add -lresolve flags, or it cannot link right library.

---
 configure.ac    | 1 +
 src/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
configure.ac +1 -0
index aa10143..d978565 100644
@@ -80,6 +80,7 @@ AC_CHECK_CC_FLAG([-Wignored-qualifiers], [WARN_IGNORED_QUALIFIERS])
 ACX_PTHREAD
 AC_CHECK_LIB([uuid], [uuid_parse], [true], AC_MSG_FAILURE([libuuid not found]))
 AC_CHECK_LIB([m], [pow], [true], AC_MSG_FAILURE([libm not found]))
+AC_CHECK_LIB([resolv], [__res_nquery], [true], AC_MSG_FAILURE([libresolv not found]))
 if test x"$linux" = x"yes"; then
 	AC_CHECK_LIB([keyutils], [add_key], [true], AC_MSG_FAILURE([libkeyutils not found]))
 fi
src/Makefile.am +1 -1
index 8b5e63d..16a7ed3 100644
@@ -366,7 +366,7 @@ radosgw_SOURCES = \
         rgw/rgw_swift.cc \
 	rgw/rgw_swift_auth.cc \
 	rgw/rgw_main.cc
-radosgw_LDADD = $(my_radosgw_ldadd) -lfcgi
+radosgw_LDADD = $(my_radosgw_ldadd) -lfcgi -lresolv
 radosgw_CXXFLAGS = ${CRYPTO_CXXFLAGS} ${AM_CXXFLAGS}
 bin_PROGRAMS += radosgw
 
Signature · 1 line
1.7.11.7
#1 lore raw

Thanks. Pushed to the next branch.

Yehuda

Quoted 42 lines · Chen Baozi

radosgw depends on libresolv since since the commit 951c6be. So we need to add -lresolve flags, or it cannot link right library.

---
 configure.ac    | 1 +
 src/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
configure.ac +1 -0
index aa10143..d978565 100644
@@ -80,6 +80,7 @@ AC_CHECK_CC_FLAG([-Wignored-qualifiers], [WARN_IGNORED_QUALIFIERS])
 ACX_PTHREAD
 AC_CHECK_LIB([uuid], [uuid_parse], [true], AC_MSG_FAILURE([libuuid not found]))
 AC_CHECK_LIB([m], [pow], [true], AC_MSG_FAILURE([libm not found]))
+AC_CHECK_LIB([resolv], [__res_nquery], [true], AC_MSG_FAILURE([libresolv not found]))
 if test x"$linux" = x"yes"; then
        AC_CHECK_LIB([keyutils], [add_key], [true], AC_MSG_FAILURE([libkeyutils not found]))
 fi
src/Makefile.am +1 -2
index 8b5e63d..16a7ed3 100644
@@ -366,7 +366,7 @@ radosgw_SOURCES = \
         rgw/rgw_swift.cc \
        rgw/rgw_swift_auth.cc \
        rgw/rgw_main.cc
-radosgw_LDADD = $(my_radosgw_ldadd) -lfcgi
+radosgw_LDADD = $(my_radosgw_ldadd) -lfcgi -lresolv
 radosgw_CXXFLAGS = ${CRYPTO_CXXFLAGS} ${AM_CXXFLAGS}
 bin_PROGRAMS += radosgw
 
--

1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html