Re: RFC: RPM build flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 16 February 2009 12:42:33 pm Jon Masters wrote:
> Folks,
>
> In the meeting on #fedora-meeting just now I discovered the i586 arch
> changes weren't specific just to kernel but that the entire 32-bit
> userspace is being switched to i586 instead of i386 as a default. Most
> of that is koji (it makes builds for i586 instead of i386) but there was
> a request to look at flags.
>
> Currently, we build i386 packages with the following:
>
> optflags: i386 %{__global_cflags} -m32 -march=i386
> -mtune=generic -fasynchronous-unwind-tables
>
> And we build i586 packages with the following:
>
> optflags: i586 %{__global_cflags} -m32 -march=i586
> -fasynchronous-unwind-tables
>
> So the proposal is to change i586 to be in line with i386:
>
> optflags: i586 %{__global_cflags} -m32 -march=i586
> -mtune=generic -fasynchronous-unwind-tables
>
> While we're at it, didn't spot and/or someone else want to tweak sparc
> build flags too? Now would be a good time to let us know :)
>
> Jon.
the attached patch is what i intend to apply.  Im still checking for s390 if 
we should set anything different there.  but im expecting the answer is no.

Dennis
--- redhat-rpm-config-9.0.3-orig/rpmrc	2008-05-06 18:08:20.000000000 -0500
+++ redhat-rpm-config-9.0.3/rpmrc	2009-02-16 14:10:14.663282849 -0600
@@ -2,7 +2,7 @@
 
 optflags: i386 %{__global_cflags} -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
 optflags: i486 %{__global_cflags} -m32 -march=i486 -fasynchronous-unwind-tables
-optflags: i586 %{__global_cflags} -m32 -march=i586 -fasynchronous-unwind-tables
+optflags: i586 %{__global_cflags} -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables
 optflags: i686 %{__global_cflags} -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables
 optflags: athlon %{__global_cflags} -m32 -march=athlon -fasynchronous-unwind-tables
 optflags: ia64 %{__global_cflags}
@@ -18,7 +18,9 @@
 optflags: sparc %{__global_cflags} -m32 -mcpu=v7 -mtune=ultrasparc
 optflags: sparcv8 %{__global_cflags} -m32 -mcpu=v8
 optflags: sparcv9 %{__global_cflags} -m32 -mcpu=ultrasparc
+optflags: sparcv9v %{__global_cflags} -m32 -mcpu=niagara
 optflags: sparc64 %{__global_cflags} -m64 -mcpu=ultrasparc
+optflags: sparc64v %{__global_cflags} -m64 -mcpu=niagara
 
 optflags: m68k %{__global_cflags}
 
@@ -57,6 +59,18 @@
 optflags: hades %{__global_cflags}
 
 optflags: s390 %{__global_cflags} -m31
-optflags: s390x %{__global_cflags} -m64
+optflags: s390x %{__global_cflags} -m64 -march=z9-109 -mtune=z10
+
+# set build arch to fedor buildarches on hardware capable of running it
+# saves having to do rpmbuild --target=
+buildarchtranslate: athlon: i586
+buildarchtranslate: geode: i586
+buildarchtranslate: pentium4: i586
+buildarchtranslate: pentium3: i586
+buildarchtranslate: i686: i586
+buildarchtranslate: i586: i586
+
+buildarchtranslate: sparcv9: sparcv9
+buildarchtranslate: sparcv9v: sparcv9
 
 macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux