components/php/php56/Makefile
branchs11u3-sru
changeset 7784 531789214c7c
parent 6905 f976b5909005
equal deleted inserted replaced
7781:8314c1faa159 7784:531789214c7c
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 include $(WS_COMPONENTS)/php/php-metadata.mk
    28 include $(WS_COMPONENTS)/php/php-metadata.mk
    48 COMPILER=gcc
    48 COMPILER=gcc
    49 CFLAGS += -std=gnu99
    49 CFLAGS += -std=gnu99
    50 
    50 
    51 # We patch configure.in to allow building just modules (no SAPI's), e.g. intl.
    51 # We patch configure.in to allow building just modules (no SAPI's), e.g. intl.
    52 # Since we are sharing the source, regenerate configure here.
    52 # Since we are sharing the source, regenerate configure here.
    53 COMPONENT_PREP_ACTION += (cd $(SOURCE_DIR) ; autoconf) ;
    53 COMPONENT_PREP_ACTION += (cd $(SOURCE_DIR) ; autoreconf) ;
    54 
    54 
    55 ASLR_MODE = $(ASLR_ENABLE)
    55 ASLR_MODE = $(ASLR_ENABLE)
    56 
    56 
    57 include enable-extensions.mk
    57 include enable-extensions.mk
    58 
    58 
    72 CONFIGURE_OPTIONS +=	--with-config-file-scan-dir=$(ETCPHPDIR)/conf.d
    72 CONFIGURE_OPTIONS +=	--with-config-file-scan-dir=$(ETCPHPDIR)/conf.d
    73 # Nor does PEAR (default: $PREFIX/lib/php)
    73 # Nor does PEAR (default: $PREFIX/lib/php)
    74 CONFIGURE_OPTIONS +=	--with-pear=$(VARPHPDIR)/pear
    74 CONFIGURE_OPTIONS +=	--with-pear=$(VARPHPDIR)/pear
    75 
    75 
    76 # Use openldap
    76 # Use openldap
    77 # This is good enough to fool configure
    77 CONFIGURE_ENV += LDAP_INCDIR=/usr/include/openldap
       
    78 CONFIGURE_ENV += LDAP_SHARED_LIBADD="-lldap_r"
    78 CPPFLAGS += -I$(USRINCDIR)/openldap
    79 CPPFLAGS += -I$(USRINCDIR)/openldap
    79 LDFLAGS += -lldap_r
    80 LDFLAGS += -lldap_r
    80 # but ensure "make" gets the point
    81 # but ensure "make" gets the point
       
    82 COMPONENT_BUILD_ARGS += LDAP_INCDIR=/usr/include/openldap
    81 COMPONENT_BUILD_ARGS += LDAP_SHARED_LIBADD="-lldap_r"
    83 COMPONENT_BUILD_ARGS += LDAP_SHARED_LIBADD="-lldap_r"
    82 
    84 
    83 # Disable SSLv2 and SSLv3 for security reasons
    85 # Disable SSLv2 and SSLv3 for security reasons
    84 CFLAGS += -DOPENSSL_NO_SSL2
    86 CFLAGS += -DOPENSSL_NO_SSL2
    85 CFLAGS += -DOPENSSL_NO_SSL3
    87 CFLAGS += -DOPENSSL_NO_SSL3