components/python/imaging/Makefile
changeset 1890 5a4ef66c42bf
parent 1434 c782e620dd26
child 1907 446472de62e9
equal deleted inserted replaced
1889:7251578a5ce7 1890:5a4ef66c42bf
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2014, 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 COMPONENT_NAME=		Imaging
    28 COMPONENT_NAME=		Imaging
    46 COMPONENT_TEST_ARGS= ./selftest.py
    46 COMPONENT_TEST_ARGS= ./selftest.py
    47 COMPONENT_TEST_ENV= PYTHONPATH=$(TEST_PYTHONPATH.$(BITS))
    47 COMPONENT_TEST_ENV= PYTHONPATH=$(TEST_PYTHONPATH.$(BITS))
    48 
    48 
    49 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    49 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    50 
    50 
       
    51 # Needed to get around a broken /usr/lib/python2.7/config/Makefile
       
    52 # See CR #16837431.
       
    53 LD=$(CC)
       
    54 LDSHARED=$(CC) -G
       
    55 PYTHON_ENV += CC="$(CC)"
       
    56 PYTHON_ENV += LDSHARED="$(LDSHARED)"
       
    57 PYTHON_ENV += LD="$(LD)"
       
    58 PYTHON_ENV += CFLAGS="$(CFLAGS)"
       
    59 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
       
    60 
    51 # common targets
    61 # common targets
    52 build:          $(BUILD_32_and_64)
    62 build:		$(BUILD_32_and_64)
    53 
    63 
    54 install:        $(INSTALL_32_and_64)
    64 install:	$(INSTALL_32_and_64)
    55 
    65 
    56 test:           $(TEST_32_and_64)
    66 test:		$(TEST_32_and_64)
    57 
    67 
    58 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
    68 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    59 
    69 
    60 include $(WS_TOP)/make-rules/depend.mk
    70 include $(WS_TOP)/make-rules/depend.mk