[packages/libnsbmp] pass our CC

glen glen at pld-linux.org
Sat Apr 27 15:58:36 CEST 2013


commit 532a9ed426d0f2eb3a975b61f0d375a25acb780b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 27 16:58:30 2013 +0300

    pass our CC

 libnsbmp.spec | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/libnsbmp.spec b/libnsbmp.spec
index c05aff5..7635485 100644
--- a/libnsbmp.spec
+++ b/libnsbmp.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static library
-#
+
 Summary:	Decoding library for BMP and ICO file formats
 Name:		libnsbmp
 Version:	0.1.0
@@ -51,24 +51,30 @@ Statyczna biblioteka libnsbmp.
 %patch0 -p1
 
 %build
-CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q=''
+export CC="%{__cc}"
+export CFLAGS="%{rpmcflags}"
+export LDFLAGS="%{rpmldflags}"
+
+%{__make} Q= \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-shared
 
 %if %{with static_libs}
-CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q=''
+%{__make} Q= \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-static
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install Q='' \
+%{__make} install Q= \
 	lib=%{_lib} \
 	PREFIX=%{_prefix} \
 	COMPONENT_TYPE=lib-shared \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with static_libs}
-%{__make} install Q='' \
+%{__make} install Q= \
 	lib=%{_lib} \
 	PREFIX=%{_prefix} \
 	COMPONENT_TYPE=lib-static \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnsbmp.git/commitdiff/532a9ed426d0f2eb3a975b61f0d375a25acb780b



More information about the pld-cvs-commit mailing list