mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
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)
This commit is contained in:
parent
0add37aca7
commit
93ac364e23
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user