Author Topic: optflags and buildarchtranslate  (Read 709 times)

Offline han

  • New Friend
  • *
  • Posts: 6
optflags and buildarchtranslate
« on: May 20, 2012, 02:59:58 PM »
Hi,

I'm very new to pclinuxos (I've been running zen-mini gnome2 since yesterday) and, in addition, I'm not used to dealing with "rpm" packages.  :-\

Nevertheless, I'd like to compile some programs on my own (such as firefox-esr for instance and others...).
In order to understand the "specs" files, I've read a couple of tutorials found on the web and in the Mandriva/Fedora wikis.

But, I'm stuck with the options which are passed to the compiler.

Can someone explain what does "buildarchtranslate" do in the .rpmrc file ?
Does it set the compilation for a pentium 586 ?

I'm asking you this, because I'd like to (re)compile some programs with these parameters -O2 -m32 -march=i586 -mtune=native but I don't know what exactly is involved with the macros optflags and buildarchtranslate.

kind regards
han.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: optflags and buildarchtranslate
« Reply #1 on: May 21, 2012, 05:37:05 AM »
Quote
Can someone explain what does "buildarchtranslate" do in the .rpmrc file ?
Does it set the compilation for a pentium 586 ?
     
Simple explanation: It means that whatever is being called for, i386, i486, i586 or i686, the RPM will be an i586 RPM and installable on PCLinuxOS.     

Offline han

  • New Friend
  • *
  • Posts: 6
Re: optflags and buildarchtranslate
« Reply #2 on: May 21, 2012, 11:51:14 AM »
Well, I'm not a native english speaker, consequently I suspect that I must have not made me clear.

Yesterday I tried several times to compile with the parameters I want, but this failed each time.
I had commented, adjusted or added optflags in several files (namely: /usr/lib/rpm/rambo/rpmrc, /usr/lib/rpm/rpmrc, .rpmrc) but in the end the compiler, compiles for a pentium 586 with this parameters -O2 -g -march=i586 -mtune=generic...and others like stack-protector.
At best, those parameters were added with the ones I wanted.

I do not need any debugging symbols, stack-protector is the default in gcc4.1 and beyond and I'd like to compile for a geode cpu (lx800) on a core2 processor architecture.

Can someone tell me how to get rid off the default parameters (i586...) or give me a clue ?

kind regards
han

ps: English is not my mother tongue. If I'm being rude, stupid, weird; It's not on purpose.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: optflags and buildarchtranslate
« Reply #3 on: May 21, 2012, 02:24:25 PM »
Are you trying to package it for adding to the pclos repo, or just trying to compile it for your own use?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline han

  • New Friend
  • *
  • Posts: 6
Re: optflags and buildarchtranslate
« Reply #4 on: May 21, 2012, 05:16:28 PM »
It's for my own use...at least for the moment.

I'm not reluctant to share of course, but what can I say more ?
At the moment I've just planned to upgrade a couple of software which are already provided with PCLinuxOS (Firefox-esr and Transmission)

Despite my adjustments, Transmission is eating all my internet broadband at the point where Firefox is not working anymore.
I tried Deluge (Firefox is responding well with Deluge by the way) but I prefer Transmission.

As a consequence, I decided to stick with Firefox-esr and upgrade Transmission with the last release.
In the process of learning how to make a package for PCLinuxOS, I noticed that the packages are made for pentium 586.
Since, I've been trying to overwrite these parameters, but without success.
 
First, I posted my request for help in the French part of the forum, but they told me that there is not French speaker acting as packager.
I came here and asked politely for help.
I've been waiting for since.

kind regards
han

ps: English is not my mother tongue. If I'm being rude, stupid, weird; It's not on purpose.