summaryrefslogtreecommitdiffstats
path: root/ctdb/Makefile.in
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-05-24 15:14:20 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-05-29 15:17:45 +1000
commit93ac364e23c4f3ed8afaeabf7563086cfe720cbf (patch)
tree298751f6996ae0146b94db45bd1bcfb215572761 /ctdb/Makefile.in
parent0add37aca7a9d2885f1acd09153fdf8d7d2d7013 (diff)
downloadsamba-93ac364e23c4f3ed8afaeabf7563086cfe720cbf.tar.gz
samba-93ac364e23c4f3ed8afaeabf7563086cfe720cbf.tar.xz
samba-93ac364e23c4f3ed8afaeabf7563086cfe720cbf.zip
build: Support for building on AIX xlc compiler
xlc does not support -fPIC, -Wno-format-zero-length Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2cf95741fdab2ee5f724950a0b1ef257d6aeade7)
Diffstat (limited to 'ctdb/Makefile.in')
-rwxr-xr-xctdb/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in
index 6b86bade7a3..9c29ad9c3c8 100755
--- a/ctdb/Makefile.in
+++ b/ctdb/Makefile.in
@@ -48,13 +48,17 @@ PMDA_LIBS = -lpcp -lpcp_pmda
PMDA_INSTALL = @CTDB_PMDA_INSTALL@
PMDA_DEST_DIR = /var/lib/pcp/pmdas/ctdb
+ifeq ($(CC),gcc)
+EXTRA_CFLAGS=-Wno-format-zero-length -fPIC
+endif
+
CFLAGS=@CPPFLAGS@ -g -I$(srcdir)/include -Iinclude -Ilib -Ilib/util -I$(srcdir) \
$(TALLOC_CFLAGS) $(TEVENT_CFLAGS) $(TDB_CFLAGS) -I@libreplacedir@ \
-DVARDIR=\"$(localstatedir)\" -DETCDIR=\"$(etcdir)\" \
-DLOGDIR=\"$(logdir)\" -DBINDIR=\"$(bindir)\" \
-DSOCKPATH=\"$(sockpath)\" \
- -DUSE_MMAP=1 -DTEVENT_DEPRECATED_QUIET=1 @CFLAGS@ -Wno-format-zero-length $(POPT_CFLAGS) \
- -fPIC
+ -DUSE_MMAP=1 -DTEVENT_DEPRECATED_QUIET=1 @CFLAGS@ $(POPT_CFLAGS) \
+ $(EXTRA_CFLAGS)
LDSHFLAGS=-fPIC -shared
#LDSHFLAGS=-fPIC -shared -Wl,-Bsymbolic -Wl,-z,relo -Wl,-Bsymbolic-funtions -Wl,--as-needed -Wl,-z,defs