components/libgcrypt/Makefile
changeset 6240 7fdcf093fdc2
parent 6061 688d76d9348b
child 6287 09470f4f0af3
equal deleted inserted replaced
6239:925323933ffd 6240:7fdcf093fdc2
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 BUILD_BITS= 64_and_32
    25 BUILD_BITS= 64_and_32
       
    26 
       
    27 # GCC 5.3 with the default optimization -O3 (set via shared-macros.mk),
       
    28 # inlines _gcry_cipher_ocb_get_l, double_block_cpy and double_block to
       
    29 # _gcry_cipher_ocb_authenticate on amd64. Due to a bug in GCC, the
       
    30 # inlined code is incorrect and the library produces data with errors
       
    31 # (manifested through failed 'basic' test results).  The optimization is
       
    32 # lowered down on the affected platform.  For more information see:
       
    33 # https://lists.gnupg.org/pipermail/gcrypt-devel/2016-April/003858.html
       
    34 gcc_OPT.i386.64 = -O2
       
    35 
    26 include ../../make-rules/shared-macros.mk
    36 include ../../make-rules/shared-macros.mk
    27 
    37 
    28 COMPONENT_NAME=		libgcrypt
    38 COMPONENT_NAME=		libgcrypt
    29 COMPONENT_VERSION=	1.6.4
    39 COMPONENT_VERSION=	1.7.0
    30 COMPONENT_PROJECT_URL=  ftp://ftp.gnupg.org/gcrypt/libgcrypt/ 
    40 COMPONENT_PROJECT_URL=  ftp://ftp.gnupg.org/gcrypt/libgcrypt/ 
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    41 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    32 COMPONENT_ARCHIVE_HASH= \
    42 COMPONENT_ARCHIVE_HASH= \
    33     sha256:c9bc2c7fe2e5f4ea13b0c74f9d24bcbb1ad889bb39297d8082aebf23f4336026
    43     sha256:b0e67ea74474939913c4d9d9ef4ef5ec378efbe2bebe36389dee319c79bffa92
    34 COMPONENT_ARCHIVE_URL=  ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    44 COMPONENT_ARCHIVE_URL=  ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_BUGDB=	library/libgcrypt
    45 COMPONENT_BUGDB=	library/libgcrypt
    36 
    46 
    37 TPNO=			26276
    47 TPNO=			27993
    38 
    48 
    39 # Requires new pkgmogrify feature, available in S12 but not 11.3, so do not
    49 # Requires new pkgmogrify feature, available in S12 but not 11.3, so do not
    40 # publish.
    50 # publish.
    41 ifeq ($(BUILD_TYPE), evaluation)
    51 ifeq ($(BUILD_TYPE), evaluation)
    42 BUILD_32_and_64=
    52 BUILD_32_and_64=
    54 # supported by Solaris C language preprocessor, cpp(1). Heavy manual
    64 # supported by Solaris C language preprocessor, cpp(1). Heavy manual
    55 # patching in a potentially dangerous area would be needed to allow use
    65 # patching in a potentially dangerous area would be needed to allow use
    56 # of Solaris Studio as the component compiler.
    66 # of Solaris Studio as the component compiler.
    57 COMPILER =		gcc
    67 COMPILER =		gcc
    58 
    68 
    59 #
       
    60 # The gcc deliverred with Solaris prior the gcc version 5.3 uses
       
    61 # different assembler versions on x86 and SPARC platforms. This causes
       
    62 # compilation issues. The GCC_ROOT explicitly sets the version of the
       
    63 # compiler to version 5.3 which resolves this problem. The line should
       
    64 # be removed once gcc on both platforms starts using the same assembler.
       
    65 GCC_ROOT = /usr/gcc/5.3
       
    66 
       
    67 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
    69 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
    68 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
    70 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
    69 CONFIGURE_OPTIONS += --enable-maintainer-mode 
    71 CONFIGURE_OPTIONS += --enable-maintainer-mode 
    70 CONFIGURE_OPTIONS += --disable-asm
    72 CONFIGURE_OPTIONS += --disable-asm
    71 CONFIGURE_OPTIONS += --enable-threads=posix
       
    72 CONFIGURE_OPTIONS += --enable-ciphers=arcfour:blowfish:des:aes:twofish:serpent:rfc2268:seed:camellia:cast5
       
    73 
    73 
    74 ASLR_MODE = $(ASLR_ENABLE)
    74 ASLR_MODE = $(ASLR_ENABLE)
    75 
    75 
    76 include ../../make-rules/shared-targets.mk
    76 include ../../make-rules/shared-targets.mk
    77 
    77