components/python/python27/Makefile
changeset 896 50be262e44f7
parent 885 2af25a1da825
child 975 44e81e837f1f
child 2434 6c9bb5cf5610
equal deleted inserted replaced
895:179839d37cb0 896:50be262e44f7
    41 
    41 
    42 # We patch auto* files, so regenerate headers and configure
    42 # We patch auto* files, so regenerate headers and configure
    43 COMPONENT_PREP_ACTION = \
    43 COMPONENT_PREP_ACTION = \
    44 	(cd $(@D) ; autoheader ; autoconf)
    44 	(cd $(@D) ; autoheader ; autoconf)
    45 
    45 
       
    46 # we don't want to leak $(CC_BITS) into BASECFLAGS as it causes problems with
       
    47 # python-config
       
    48 CC +=	$(CFLAGS)
       
    49 
       
    50 C99MODE=
       
    51 CPPFLAGS +=	-IPython
       
    52 
    46 # to find the ncurses headers
    53 # to find the ncurses headers
    47 CPPFLAGS +=	-I/usr/include/ncurses
    54 CPPFLAGS +=	-I/usr/include/ncurses
       
    55 # enable large files how they did in JDS
       
    56 CPPFLAGS +=	-D_LARGEFILE64_SOURCE
    48 
    57 
    49 # libffi for _ctypes
    58 # libffi for _ctypes
    50 CPPFLAGS +=	$(shell pkg-config --cflags-only-I libffi)
    59 CPPFLAGS +=	$(shell pkg-config --cflags-only-I libffi)
    51 
    60 
    52 # because python links with $(CC) ... $(LDFLAGS) ...
    61 # because python links with $(CC) ... $(LDFLAGS) ...
    87 CONFIGURE_OPTIONS  +=		--without-gcc
    96 CONFIGURE_OPTIONS  +=		--without-gcc
    88 CONFIGURE_OPTIONS  +=		--enable-ipv6
    97 CONFIGURE_OPTIONS  +=		--enable-ipv6
    89 CONFIGURE_OPTIONS  +=		ac_cv_opt_olimit_ok=no
    98 CONFIGURE_OPTIONS  +=		ac_cv_opt_olimit_ok=no
    90 CONFIGURE_OPTIONS  +=		ac_cv_olimit_ok=no
    99 CONFIGURE_OPTIONS  +=		ac_cv_olimit_ok=no
    91 CONFIGURE_OPTIONS  +=		CPPFLAGS="$(CPPFLAGS)"
   100 CONFIGURE_OPTIONS  +=		CPPFLAGS="$(CPPFLAGS)"
    92 CONFIGURE_OPTIONS  +=		BASECFLAGS="$(CFLAGS)"
       
    93 CONFIGURE_OPTIONS  +=		LDFLAGS="$(LDFLAGS)"
   101 CONFIGURE_OPTIONS  +=		LDFLAGS="$(LDFLAGS)"
       
   102 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
    94 CONFIGURE_OPTIONS  +=		DFLAGS="-$(BITS)"
   103 CONFIGURE_OPTIONS  +=		DFLAGS="-$(BITS)"
    95 CONFIGURE_OPTIONS  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
   104 CONFIGURE_OPTIONS  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
    96 
   105 
    97 COMPONENT_BUILD_ENV  +=		DFLAGS="-$(BITS)"
   106 COMPONENT_BUILD_ENV  +=		DFLAGS="-$(BITS)"
    98 COMPONENT_BUILD_ENV  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
   107 COMPONENT_BUILD_ENV  +=		XPROFILE_DIR="$(XPROFILE_DIR)"