components/python/python34/Makefile
branchs11-update
changeset 3789 137fdcb27c8e
parent 3786 fa9d2da4d216
child 3791 1504f7bde5fd
equal deleted inserted replaced
3788:66a6b4289021 3789:137fdcb27c8e
   120 # 64 bit shared objects need to go in a 64-bit directory
   120 # 64 bit shared objects need to go in a 64-bit directory
   121 COMPONENT_INSTALL_ARGS.64 += DESTSHARED=$(CONFIGURE_PREFIX)/lib/python3.4/lib-dynload
   121 COMPONENT_INSTALL_ARGS.64 += DESTSHARED=$(CONFIGURE_PREFIX)/lib/python3.4/lib-dynload
   122 
   122 
   123 ASLR_MODE = $(ASLR_ENABLE)
   123 ASLR_MODE = $(ASLR_ENABLE)
   124 
   124 
       
   125 # Simplify the definitions of CC, CXX, CFLAGS and LDFLAGS so they hard-code
       
   126 # neither paths from our build systems nor Studio-specific options.
       
   127 COMPONENT_PRE_INSTALL_ACTION= \
       
   128     (cd $(@D) ; \
       
   129      $(GSED) -i -e 's/^CC=.*/CC=\t\tcc/' -e 's/^CXX=.*/CXX=\t\tCC/' \
       
   130 	-e 's/^CFLAGS=.*/CFLAGS=\t\t\$$\(BASECFLAGS) \$$\(OPT) \$$\(EXTRA_CFLAGS)/' \
       
   131 	-e 's|^LDFLAGS=.*|LDFLAGS=|' Makefile)
       
   132 
       
   133 # Because we stripped the Makefile above, we need to pass several things in the
       
   134 # environment, and use -e to tell gmake to pay attention to the environment.
       
   135 COMPONENT_INSTALL_ENV +=	CC="$(CC)"
       
   136 COMPONENT_INSTALL_ENV +=	CXX="$(CXX)"
       
   137 COMPONENT_INSTALL_ENV +=	CFLAGS="$(CFLAGS)"
       
   138 COMPONENT_INSTALL_ENV +=	LDFLAGS="$(LDFLAGS)"
       
   139 COMPONENT_INSTALL_ARGS +=	-e
       
   140 
       
   141 # Strip build machine paths from _sysconfigdata.py & config/Makefile.
       
   142 COMPONENT_POST_INSTALL_ACTION= \
       
   143     (cd $(PROTOUSRLIBDIR)/python3.4 ; \
       
   144      $(GSED) -i -e 's|$(SOURCE_DIR)|.|g' -e 's|$(COMPONENT_DIR)|..|g' \
       
   145 	-e 's|$(SPRO_VROOT)/bin/||g' lib-dynload/64/_sysconfigdata.py \
       
   146 	config-3.4m/Makefile)
       
   147 
   125 # common targets
   148 # common targets
   126 build:		$(BUILD_64)
   149 build:		$(BUILD_64)
   127 install:	$(INSTALL_64)
   150 install:	$(INSTALL_64)
   128 
   151 
   129 # Using "-uall,-network" ensures all tests are run except the network tests.
   152 # Using "-uall,-network" ensures all tests are run except the network tests.