[packages/cross-binutils] cleanups

glen glen at pld-linux.org
Mon Jan 12 10:54:57 CET 2015


commit ccc401bb7ece9371c998d67fb026573e71b51a68
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 11 20:27:11 2015 +0200

    cleanups

 cross-binutils.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/cross-binutils.spec b/cross-binutils.spec
index 6c88b26..ae3495c 100644
--- a/cross-binutils.spec
+++ b/cross-binutils.spec
@@ -49,7 +49,7 @@
 Summary:	A GNU collection of cross-compilation binary utilities
 Name:		cross-binutils
 Version:	2.25
-Release:	0.8
+Release:	0.9
 License:	GPL v3+
 Group:		Development/Tools
 # Note - the Linux Kernel binutils releases are too unstable and contain too
@@ -305,7 +305,6 @@ config_target() {
 	esac
 
 	echo $arch: target is $target
-	export CFLAGS="$RPM_OPT_FLAGS"
 	CARGS=
 
 	case $target in i?86*|sparc*|ppc*|s390*|sh*|arm*)
@@ -338,7 +337,8 @@ config_target() {
 
 	# We could optimize the cross builds size by --enable-shared but the produced
 	# binaries may be less convenient in the embedded environment.
-	LDFLAGS="-Wl,-z,relro " \
+	CFLAGS="%{rpmcflags}" \
+	LDFLAGS="%{rpmldflags} -Wl,-z,relro" \
 	../%{srcdir}/configure \
 	--disable-dependency-tracking \
 	--disable-silent-rules \
@@ -374,7 +374,7 @@ done
 
 build_target() {
 	local build_dir=${1%%%%-*}
-	%{__make} -C $build_dir %{_smp_mflags} tooldir=%{_prefix} all
+	%{__make} -C $build_dir tooldir=%{_prefix} all
 }
 
 for target in $(cat target.list); do
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cross-binutils.git/commitdiff/3ceaf5478660eddc31792ed53069aa0ab5df0cd2



More information about the pld-cvs-commit mailing list