Re: [PATCH] rgw: add -lresolv flags to Makefile.am

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks. Pushed to the next branch.

Yehuda

On Sat, Nov 17, 2012 at 10:34 PM, Chen Baozi <baozich@xxxxxxxxx> wrote:
>
> radosgw depends on libresolv since since the commit 951c6be. So we need to
> add -lresolve flags, or it cannot link right library.
>
> Signed-off-by: Chen Baozi <baozich@xxxxxxxxx>
> ---
>  configure.ac    | 1 +
>  src/Makefile.am | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index aa10143..d978565 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -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
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 8b5e63d..16a7ed3 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -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 majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux