提交 7a9b9466 authored 作者: Stefan Knoblich's avatar Stefan Knoblich

mod_xml_ldap: strip -std=c99 from CFLAGS during openldap build (fixes problems…

mod_xml_ldap: strip -std=c99 from CFLAGS during openldap build (fixes problems w/ arpa/nameser.h on linux) and stop building openldap server components

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8273 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e893654b
......@@ -8,7 +8,8 @@ LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
DEFAULT_ARGS=--prefix=$(PREFIX) --disable-shared --with-pic
DEFAULT_ARGS= --prefix=$(PREFIX) --disable-shared --with-pic --disable-slapd
DEFAULT_ARGS+= --disable-slurpd --disable-relay --disable-bdb --disable-hdb
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA)
......@@ -16,7 +17,7 @@ include $(switch_srcdir)/build/modmake.rules
$(LDAP_DIR):
$(GETLIB) $(LDAP).tgz
cd $(LDAP_DIR) && ./configure $(DEFAULT_ARGS) --disable-bdb --disable-hdb --disable-slapd
cd $(LDAP_DIR) && CFLAGS="`echo $(CFLAGS) | sed -e 's:-std=c99::'`" ./configure $(DEFAULT_ARGS)
$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
cd $(LDAP_DIR) && $(MAKE)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论