changeset 2612:b88b51676601

PR2825: Placement of -lfreebl matters when using bfd linker 2016-01-29 Andrew John Hughes <gnu.andrew@member.fsf.org> PR2825: Placement of -lfreebl matters when using bfd linker * NEWS: Updated. * acinclude.m4: (IT_ENABLE_SUNEC): Move -lfreebl to start of SUNEC_LIBS.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Sat, 30 Jan 2016 01:10:54 +0000
parents 0883b7a8311a
children 48e97835c600
files ChangeLog NEWS acinclude.m4
diffstat 3 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 29 22:47:27 2016 +0000
+++ b/ChangeLog	Sat Jan 30 01:10:54 2016 +0000
@@ -1,3 +1,12 @@
+2016-01-29  Andrew John Hughes  <gnu.andrew@member.fsf.org>
+
+	PR2825: Placement of -lfreebl matters when
+	using bfd linker
+	* NEWS: Updated.
+	* acinclude.m4:
+	(IT_ENABLE_SUNEC): Move -lfreebl to start of
+	SUNEC_LIBS.
+
 2016-01-29  Andrew John Hughes  <gnu.andrew@member.fsf.org>
 
 	PR2804: test/tapset/jstaptest.pl should be executable
--- a/NEWS	Fri Jan 29 22:47:27 2016 +0000
+++ b/NEWS	Sat Jan 30 01:10:54 2016 +0000
@@ -132,6 +132,7 @@
   - PR2777: Fix MAX/MIN template usage on s390
   - PR2804: test/tapset/jstaptest.pl should be executable
   - PR2815: Race condition in SunEC provider with system NSS
+  - PR2825: Placement of -lfreebl matters when using bfd linker
   - Don't substitute 'j' for '-j' inside -I directives
   - Extend 8041658 to all files in the HotSpot build.
   - Remove jcheck
--- a/acinclude.m4	Fri Jan 29 22:47:27 2016 +0000
+++ b/acinclude.m4	Sat Jan 30 01:10:54 2016 +0000
@@ -1969,7 +1969,7 @@
     PKG_CHECK_MODULES(NSS_JAVA, nss-java, [NSS_JAVA_FOUND=yes], [NSS_JAVA_FOUND=no])
     if test "x${NSS_SOFTOKN_FOUND}" = "xyes"; then
       SUNEC_CFLAGS=$NSS_SOFTOKN_CFLAGS;
-      SUNEC_LIBS="$NSS_LIBS -lfreebl";
+      SUNEC_LIBS="-lfreebl $NSS_LIBS";
    elif test "x${NSS_JAVA_FOUND}" = "xyes"; then
       SUNEC_CFLAGS="$NSS_JAVA_CFLAGS -DLEGACY_NSS";
       SUNEC_LIBS=$NSS_JAVA_LIBS;