Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2018 09:17:01 +0000 (UTC)
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481266 - head/security/openssl111
Message-ID:  <201810050917.w959H1wM043229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brnrd
Date: Fri Oct  5 09:17:01 2018
New Revision: 481266
URL: https://svnweb.freebsd.org/changeset/ports/481266

Log:
  security/openssl111: Fix linking with lld on i386
  
   - Fix shared option
   - While here, fix ordering
  
  PR:		231459
  Submitted by:	Nathan <ndowens yahoo com>
  Reported by:	emaste
  Differential Revision:	https://reviews.freebsd.org/D17362

Modified:
  head/security/openssl111/Makefile

Modified: head/security/openssl111/Makefile
==============================================================================
--- head/security/openssl111/Makefile	Fri Oct  5 09:14:13 2018	(r481265)
+++ head/security/openssl111/Makefile	Fri Oct  5 09:17:01 2018	(r481266)
@@ -25,6 +25,16 @@ CONFIGURE_SCRIPT=	config
 CONFIGURE_ENV=	PERL="${PERL}"
 CONFIGURE_ARGS=	--openssldir=${OPENSSLDIR}
 
+USES=		cpe perl5
+USE_PERL5=	build
+TEST_TARGET=	test
+
+LDFLAGS_i386=	-Wl,-znotext
+#LDFLAGS=	${LDFLAGS_${ARCH}}
+
+MAKE_ARGS+=	WHOLE_ARCHIVE_FLAG=--whole-archive CNF_LDFLAGS="${LDFLAGS}"
+MAKE_ENV+=	LIBRPATH="${PREFIX}/lib" GREP_OPTIONS=
+
 OPTIONS_GROUP=		CIPHERS HASHES OPTIMIZE PROTOCOLS
 OPTIONS_GROUP_CIPHERS=	ARIA DES GOST IDEA SM2 SM3 SM4 RC2 RC4 RC5
 OPTIONS_GROUP_HASHES=	MD2 MD4 MDC2 RMD160
@@ -45,6 +55,8 @@ OPTIONS_GROUP_OPTIMIZE+=	EC
 OPTIONS_GROUP_OPTIMIZE+=	EC
 .endif
 
+OPTIONS_SUB=	yes
+
 ARIA_DESC=	ARIA (South Korean standard)
 ASM_DESC=	Assembler code
 ASYNC_DESC=	Asynchronous mode
@@ -80,14 +92,6 @@ TLS1_1_DESC=	TLSv1.1 (requires TLS1_2)
 TLS1_2_DESC=	TLSv1.2
 ZLIB_DESC=	zlib compression support
 
-OPTIONS_SUB=	yes
-
-USES=		cpe perl5
-USE_PERL5=	build
-MAKE_ARGS+=	WHOLE_ARCHIVE_FLAG=--whole-archive
-MAKE_ENV+=	LIBRPATH="${PREFIX}/lib" GREP_OPTIONS=
-TEST_TARGET=	test
-
 # Upstream default disabled options
 .for _option in md2 rc5 sctp ssl3 zlib
 ${_option:tu}_CONFIGURE_ON=	enable-${_option}
@@ -95,7 +99,7 @@ ${_option:tu}_CONFIGURE_ON=	enable-${_option}
 
 # Upstream default enabled options
 .for _option in aria asm async ct des gost idea md4 mdc2 nextprotoneg \
-	rfc3779 rmd160 sm2 sm3 sm4 sse2 threads tls1 tls1_1 tls1_2
+	rfc3779 rmd160 shared sm2 sm3 sm4 sse2 threads tls1 tls1_1 tls1_2
 ${_option:tu}_CONFIGURE_OFF=	no-${_option}
 .endfor
 
@@ -132,6 +136,7 @@ post-patch:
 		-e 's| install_html_docs$$||' \
 		-e 's|$$(LIBDIR)/pkgconfig|libdata/pkgconfig|g' \
 		${WRKSRC}/Configurations/unix-Makefile.tmpl
+	${REINPLACE_CMD} -e 's|\^GNU ld|GNU|' ${WRKSRC}/Configurations/shared-info.pl
 
 post-configure:
 	${REINPLACE_CMD} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810050917.w959H1wM043229>