FreeBSD 3.x requires change in mpi/config.links

Rich Wales richw at webcom.com
Sat Mar 6 14:06:29 CET 1999


I just upgraded to FreeBSD 3.1, and GnuPG 0.9.3 won't compile "as is"
any more.

The problem appears to be that FreeBSD 3.x doesn't use underscore (_)
characters on external symbols -- but the "mpi/config.links" script
doesn't recognize the target (i386-unknown-freebsd3.1) and tries to
prepend underscores to the external symbols used by the assembly
language routines in the MPI library.

The following patch appears to fix the problem:

--- mpi/config.links.orig	Mon Jan 11 00:55:21 1999
+++ mpi/config.links	Sat Mar  6 13:52:54 1999
@@ -170,11 +170,11 @@
 
 case "${target}" in
     *-*-linuxaout* | *-*-linuxoldld* | *-*-linux-gnuoldld*)
 	needs_underscore="y"
 	;;
-    *-*-linux* | *-sysv* | *-solaris* | *-gnu* | *-freebsd*-elf)
+    *-*-linux* | *-sysv* | *-solaris* | *-gnu* | *-freebsd*-elf | *-freebsd3*)
 	needs_underscore="n"
 	;;
     *)
 	needs_underscore="y"
 	;;

Even though FreeBSD 3.x uses the ELF binary format by default, the
$target value does NOT have "-elf" in it.

Rich Wales         richw at webcom.com         http://www.webcom.com/richw/
See http://www.webcom.com/richw/pgp/ for my PGP key and fingerprint info
*** NOTE: any key generated by me before 1997-09-18 has been REVOKED ***





More information about the Gnupg-devel mailing list