diff --git a/src/template/.similar b/src/template/.similar
index c309ecf3bd9288e62fa1f5f985f26dc5e42fe360..91db8e46888416e12850cf356ce542915143ef93 100644
--- a/src/template/.similar
+++ b/src/template/.similar
@@ -7,6 +7,7 @@ i386-pc-bsdi2.1=bsdi-2.1
 i386-pc-bsdi3.0=bsdi-3.0
 i386-pc-linux-gnu=linux-elf
 i386-pc-solaris2.6=i386_solaris-gcc
+i386-pc-sunos5=i386_solaris-gcc
 i386-unknown-freebsd=freebsd
 i386-unknown-netbsd=netbsd
 i486-pc-linux-gnu=linux-elf
@@ -20,5 +21,6 @@ powerpc-ibm-aix4.1.4.0=aix_41
 powerpc-ibm-aix4.1.5.0=aix_41
 powerpc-unknown-linux-gnu=linux-elf
 sparc-sun-solaris=sparc_solaris-gcc
+sparc-sun-sunos5=sparc_solaris-gcc
 sparc-unknown-linux-gnu=linux-elf-sparc
 sparc-sun-sunos4=sunos4-gcc