diff -ruN rpmbuild-orig/SPECS/db4.spec rpmbuild/SPECS/db4.spec
--- rpmbuild-orig/SPECS/db4.spec	2015-08-14 12:10:07.000000000 +0200
+++ rpmbuild/SPECS/db4.spec	2015-09-23 22:50:21.569086642 +0200
@@ -5,7 +5,7 @@
 Summary: The Berkeley DB database library (version 4) for C
 Name: db4
 Version: 4.7.25
-Release: 20%{?dist}
+Release: 20%{?dist}.0
 Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
 Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz
 # db-4.7.25 upstream patches
@@ -201,8 +201,8 @@
 build() {
 	test -d dist/$1 || mkdir dist/$1
 	# Static link db_dump185 with old db-185 libraries.
-	/bin/sh libtool --mode=compile	%{__cc} $RPM_OPT_FLAGS -Idb.1.85/PORT/%{_os}/include -D_REENTRANT -c db_dump185/db_dump185.c -o dist/$1/db_dump185.lo
-	/bin/sh libtool --mode=link	%{__cc} -o dist/$1/db_dump185 dist/$1/db_dump185.lo db.1.85/PORT/%{_os}/libdb.a
+	/bin/sh libtool --mode=compile --tag=CC %{__cc} $RPM_OPT_FLAGS -Idb.1.85/PORT/%{_os}/include -D_REENTRANT -c db_dump185/db_dump185.c -o dist/$1/db_dump185.lo
+	/bin/sh libtool --mode=link --tag=CC %{__cc} -o dist/$1/db_dump185 dist/$1/db_dump185.lo db.1.85/PORT/%{_os}/libdb.a
 
 	pushd dist
 	popd
@@ -385,6 +385,9 @@
 %endif
 
 %changelog
+* Wed Sep 23 2015 Jacco Ligthart <jacco@redsleeve.org> 4.7.25-20.0
+- added '--tag=CC' to a libtool statement
+
 * Fri Aug 14 2015 Jan Stanek <jstanek@redhat.com> 4.7.25-20
 - Apply upstream patch for multithreaded env_region issues
 - Resolves: rhbz#1184613
