Changeset 31881


Ignore:
Timestamp:
Apr 17, 2017, 2:54:57 PM (6 weeks ago)
Author:
brainslayer
Message:

required for cross compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/rules/php7.mk

    r31084 r31881  
    11php7: libxml2 libmcrypt
    22        CC="ccache $(ARCH)-linux-uclibc-gcc" \
    3         CFLAGS="$(COPTS) $(MIPS16_OPT)   -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/curl/include -ffunction-sections -fdata-sections -Wl,--gc-sections" \
    4         CPPFLAGS="$(COPTS) $(MIPS16_OPT) -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/curl/include -ffunction-sections -fdata-sections -Wl,--gc-sections" \
     3        CFLAGS="$(COPTS) $(MIPS16_OPT)   -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/curl/include -I$(TOP)/openssl/include -ffunction-sections -fdata-sections -Wl,--gc-sections" \
     4        CPPFLAGS="$(COPTS) $(MIPS16_OPT) -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/curl/include -I$(TOP)/openssl/include -ffunction-sections -fdata-sections -Wl,--gc-sections" \
    55        LDFLAGS="$(COPTS) $(MIPS16_OPT) -L$(TOP)/libpng/.libs -L$(TOP)/libxml2/.libs -lxml2 -L$(TOP)/glib20/libiconv/lib/.libs -liconv -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -lcrypto -lssl -ldl -fPIC -v -Wl,--verbose" \
    66        $(MAKE) -C php7
     
    7777        ICONV_DIR="$(TOP)/glib20/libiconv" \
    7878        OPENSSL_LIBDIR="$(TOP)/openssl" \
     79        OPENSSL_LIBS="$(TOP)/openssl" \
     80        OPENSSL_INCS="$(TOP)/openssl/include" \
    7981        PHP_OPENSSL_DIR="$(TOP)/openssl" \
     82        PHP_SETUP_OPENSSL="$(TOP)/openssl" \
    8083        PHP_CURL="$(TOP)/curl" \
    8184        PHP_ICONV="$(TOP)/glib20/libiconv" \
    82         EXTRA_CFLAGS="-L$(TOP)/glib20/libiconv/lib/.libs -liconv -I$(TOP)/libmcrypt -I$(TOP)/zlib -I$(TOP)/libpng -lcrypt -L$(TOP)/openssl -I$(TOP)/curl/include -lcrypto -lssl" \
    83         EXTRA_LIBS="-liconv " \
     85        EXTRA_CFLAGS="-L$(TOP)/glib20/libiconv/lib/.libs -liconv -I$(TOP)/libmcrypt -I$(TOP)/zlib -I$(TOP)/libpng -lcrypt -L$(TOP)/openssl -I$(TOP)/openssl/include  -I$(TOP)/curl/include -lcrypto -lssl" \
     86        EXTRA_LIBS="-liconv -L$(TOP)/openssl" \
    8487        EXTRA_LDFLAGS="-L$(TOP)/libmcrypt/lib/.libs -lmcrypt -L$(TOP)/glib20/libiconv/lib/.libs -liconv -L$(TOP)/libxml2/.libs -lxml2 -L$(TOP)/zlib -L$(TOP)/libpng/.libs -lpng16 -L$(TOP)/libgd/src/.libs -lgd -L$(TOP)/openssl -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -lcrypto -lssl -lcrypt -ldl" \
    8588        EXTRA_LDFLAGS_PROGRAM="-L$(TOP)/libmcrypt/lib/.libs -lmcrypt -L$(TOP)/glib20/libiconv/lib/.libs -liconv -L$(TOP)/libxml2/.libs -lxml2 -L$(TOP)/libpng/.libs -lpng16 -L$(TOP)/libgd/src/.libs -lgd -L$(TOP)/openssl -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -lcrypto -lssl -lcrypt -ldl"
     
    101104php7-configure: libpng libgd libxml2 zlib curl
    102105        rm -f php7/config.cache
    103         rm -rf php7/autom4te.cache
     106        rm -rf php7/autom4te.cach
    104107        cd php7 && autoconf
    105108        cd php7 && './configure'  '--host=$(ARCH)-linux-uclibc' $(PHP_ENDIAN) $(PHP_CONFIGURE_ARGS) \
    106         'CFLAGS=$(COPTS) -I$(TOP)/minidlna/jpeg-8 -I$(TOP)/libmcrypt -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/glib20/libiconv/include -I$(TOP)/curl/include -DNEED_PRINTF -L$(TOP)/glib20/libiconv/lib/.libs -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -liconv' \
     109        'CFLAGS=$(COPTS) -I$(TOP)/minidlna/jpeg-8 -I$(TOP)/libmcrypt -I$(TOP)/libpng -I$(TOP)/libxml2/include -I$(TOP)/glib20/libiconv/include -I$(TOP)/openssl/include -I$(TOP)/curl/include -DNEED_PRINTF -L$(TOP)/glib20/libiconv/lib/.libs -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -liconv' \
    107110        'LDFLAGS=-L$(TOP)/minidlna/lib -ljpeg -L$(TOP)/libmcrypt/lib/.libs -lmcrypt -L$(TOP)/libxml2/.libs -L$(TOP)/zlib -L$(TOP)/libpng/.libs -lpng16 -L$(TOP)/libgd/src/.libs -lgd -L$(TOP)/glib20/libiconv/lib/.libs -liconv -L$(TOP)/openssl -L$(TOP)/zlib -lz -L$(TOP)/curl/lib/.libs -lcurl -lcrypto -lssl -lcrypt -ldl'
    108111        printf "#define HAVE_GLOB 1\n" >>$(TOP)/php7/main/php_config.h
Note: See TracChangeset for help on using the changeset viewer.