From 65e5cc0f394e1d2faaab3dc5d097a3f01b03dd41 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 17 Feb 2011 07:31:18 +0000 Subject: Solaris build fixes Disable geosync build for non-linux platforms. And fix solaris related build failures.The symbol getxattr was not available on solaris. The build on linux passed as getxattr symbol was available in the library. The argument was not being used, hence removed it. Make 64 bit build default in CFLAGS option by passing -m64 option Signed-off-by: Shishir Gowda Signed-off-by: Anand V. Avati BUG: 2440 (Fix solaris build issues seen on latest git) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2440 --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a0fcbaa4d0e..1a261a2404a 100644 --- a/configure.ac +++ b/configure.ac @@ -287,6 +287,16 @@ AC_ARG_ENABLE([georeplication], [Do not install georeplication components])) BUILD_SYNCDAEMON=no +case $host_os in + linux*) +#do nothing + ;; + *) +#disabling geo replication for non-linux platforms + enable_georeplication=no + ;; +esac + if test "x$enable_georeplication" != "xno"; then SYNCDAEMON_SUBDIR=utils BUILD_SYNCDAEMON="yes" @@ -394,7 +404,7 @@ case $host_os in ;; solaris*) GF_HOST_OS="GF_SOLARIS_HOST_OS" - GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O0" + GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O0 -m64" GF_LDFLAGS="" GF_GLUSTERFS_CFLAGS="${GF_CFLAGS}" GF_LDADD="${ARGP_STANDALONE_LDADD}" -- cgit