diff --git a/src/template/.similar b/src/template/.similar
index 9b17294b0baa1fc0ec2df5d90d4e30cf17bb1506..2dc78fc075768ebd0f8dd534682bcaa9967073e2 100644
--- a/src/template/.similar
+++ b/src/template/.similar
@@ -19,4 +19,4 @@ 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-unknown-linux-gnu=linux-elf
+sparc-unknown-linux-gnu=linux-elf-sparc
diff --git a/src/template/linux-elf-sparc b/src/template/linux-elf-sparc
new file mode 100644
index 0000000000000000000000000000000000000000..a2b4213fa7265f7b65a6db4084400d9f65ca535c
--- /dev/null
+++ b/src/template/linux-elf-sparc
@@ -0,0 +1,10 @@
+AROPT:crs
+CFLAGS:-O2
+SHARED_LIB:-fpic
+ALL:
+SRCH_INC:/usr/include/ncurses /usr/include/readline
+SRCH_LIB:
+USE_LOCALE:no
+DLSUFFIX:.so
+YFLAGS:-d
+YACC:bison -y