Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are we missing some easy optimizations (LDFLAGS)?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Fri Jan 07, 2005 11:57 pm    Post subject: Reply with quote

sindre wrote:
aethyr wrote:
Out of curiosity, has anyone built KDE with these flags? I only know examples of people using it to rebuild GNOME.

Solar expressed in the bug report that
Quote:
"last [he] knew KDE/QT had some problems respecting any LDFLAGS. (mixed results)".

I'm curious what people's experiences have been.

Thanks.
I even edited the qt ebuild to make it use my CXXFLAGS and LDFLAGS, kde used them automatically. No problems yet.

You no longer need to edit the qt ebuild, since that now puts in your CFLAGS, CXXFLAGS and LDFLAGS into qmake.conf for you.
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Thu Jan 13, 2005 3:28 pm    Post subject: Reply with quote

it's me again :wink:
having a question...

could it be dangerous to compile some packages with and some without these LDFLAGS="-Wl,-O1" ??
at the moment I don't fully trust them and just compile stuff like firefox with them ...

but for more system critical stuff like binutils gawk etc, etc... - I don't do it

anyone can tell if it's ok like I do atm ?
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
oberyno
Guru
Guru


Joined: 15 Feb 2004
Posts: 467
Location: /bin/zsh

PostPosted: Thu Jan 13, 2005 4:07 pm    Post subject: Reply with quote

blueSceaDa wrote:
it's me again :wink:
having a question...

could it be dangerous to compile some packages with and some without these LDFLAGS="-Wl,-O1" ??
at the moment I don't fully trust them and just compile stuff like firefox with them ...

but for more system critical stuff like binutils gawk etc, etc... - I don't do it

anyone can tell if it's ok like I do atm ?
First of all, your logic is somewhat faulty. If LDFLAGS do in fact cause strange vulnerabilities and such, the last place you would want them is in a web-aware app such as firefox. If only binutils or gawk is vulnerable, then (AFAIK) a potential cracker would have to have physical access to your machine to do harm. Not so with web apps.

Anyway, I've been using those LDFLAGS for my whole system pretty much since this thread started. And I've had no strange LDFLAGS problems.
Also, keep in mind that Ubuntu is built with LDFLAGS by default, so at least one distro thinks LDFLAGS are stable enough.
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Thu Jan 13, 2005 4:22 pm    Post subject: Reply with quote

Oh ok! Thanks for the fast answer!
So you just put them in your actual system or built a new system from the beginning with those flags ?
If you just put them in, I think I'll also do so...
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
oberyno
Guru
Guru


Joined: 15 Feb 2004
Posts: 467
Location: /bin/zsh

PostPosted: Thu Jan 13, 2005 4:35 pm    Post subject: Reply with quote

I just added the LDFLAGS line to make.conf on my existing system, emerged a few packages, liked the performance increase, and then just left the flags there. I run "emerge world" every 2 to 3 weeks, so by now most of my system has LDFLAGS. If you want to waste(depending on how you look at it) alot of time compiling, you can do an "emerge -e world".
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Thu Jan 13, 2005 4:39 pm    Post subject: Reply with quote

no don't want to waste that time :wink:
I'll now just put in the LDFLAGS ... thanks for the help...
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Thu Jan 13, 2005 6:06 pm    Post subject: Reply with quote

Had it for a month or so now. Originally when I put it in, my system borked (gcc killed itself, or more specifically gcc-config), but it turned out to be an unrelated bug.

Everything is working peachy here!
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Thu Jan 13, 2005 6:09 pm    Post subject: Reply with quote

8O I hope it's really and unrelated bug ... thanks for the information
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Thu Jan 13, 2005 6:18 pm    Post subject: Reply with quote

blueSceaDa wrote:
8O I hope it's really and unrelated bug ... thanks for the information


Yeah I am sure it was. I recently did an "emerge -e world" with LDFLAGS and everything is green across the board. Runs smooth as a baby's bottom.
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Thu Jan 13, 2005 6:36 pm    Post subject: Reply with quote

ok much thanks =) :)
firefox really runs better ...
anyway still not like it should, but that's discussed in another thread...
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Thu Jan 13, 2005 9:04 pm    Post subject: Reply with quote

charlieg wrote:
Had it for a month or so now. Originally when I put it in, my system borked (gcc killed itself, or more specifically gcc-config), but it turned out to be an unrelated bug.

Everything is working peachy here!


What was the bug? I'm curious because I felt responsible for you potentially switching distributions :P
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Thu Jan 13, 2005 9:16 pm    Post subject: Reply with quote

Another LDFLAGS success report. Whole system compiled with LDFLAGS="-Wl,-O1", works very well.
Back to top
View user's profile Send private message
Mystilleef
Guru
Guru


Joined: 27 Apr 2003
Posts: 561
Location: Earth

PostPosted: Fri Jan 14, 2005 3:42 pm    Post subject: Reply with quote

Anyone know what -Wl,-O2 does?
_________________
simple, sleek and sexy text editor for gnome

"My logic is undeniable."
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Fri Jan 14, 2005 3:47 pm    Post subject: Reply with quote

I think it's the same because it says:

Code:
-O level
If level is a numeric values greater than zero ld optimizes the output. This might take significantly longer and therefore probably should only be enabled for the final binary.


and I think it would be better documented if there would be something more if not using "1"
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
Mystilleef
Guru
Guru


Joined: 27 Apr 2003
Posts: 561
Location: Earth

PostPosted: Fri Jan 14, 2005 4:08 pm    Post subject: Reply with quote

That makes sense, thanks.
_________________
simple, sleek and sexy text editor for gnome

"My logic is undeniable."
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Sun Jan 16, 2005 3:30 am    Post subject: Reply with quote

aethyr wrote:
What was the bug?

A dodgy gcc-config package. [edit - um, not binutils, but gcc-config!]

(Speaking of which, is it my imagination or has the quality checking process for ~x86 really gone downhill in the last 2 weeks or so? I haven't managed to successfully do an 'emerge world -uv' for at least that long due to one thing or another simply not compiling. And when I fix it - usefully by referring to bugs.gentoo.org - something else is always refusing to compile. I know ~x86 is 'testing' but it's ridiculous how much is failing at the moment... at least 10+ things here in the last few weeks.)

aethyr wrote:
I'm curious because I felt responsible for you potentially switching distributions :P

I apologise, it did seem a bit melodramatic of me. The comment wasn't really that you were to blame, it was just me thinking aloud that I just can't be arsed going through two days of installation when it could be ready in 30 minutes. My time is no longer as expendable as it once was.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Sun Jan 16, 2005 2:08 pm    Post subject: Reply with quote

Oktane wrote:
Another LDFLAGS success report. Whole system compiled with LDFLAGS="-Wl,-O1", works very well.

Just for the records: Same here. Works like a charm!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Sun Jan 16, 2005 3:18 pm    Post subject: Reply with quote

I also have no problems until now, just adding the LDFLAGS="-Wl,-O1" to the make.conf
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon Jan 17, 2005 5:48 am    Post subject: Reply with quote

LDFLAGS="-Wl,O1" since 12/05/04. no problems.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
discomfitor
l33t
l33t


Joined: 21 Feb 2003
Posts: 927
Location: None

PostPosted: Tue Jan 18, 2005 5:17 am    Post subject: Reply with quote

EDIT: my bad...somehow I posted this in the wrong thread :oops: .

/me whistles casually and tries to pretend nothing out of the ordinary happened.
_________________
There is no substitute for experience.
Imperfection indicates a lack of effort.


Last edited by discomfitor on Tue Jan 18, 2005 4:11 pm; edited 3 times in total
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Tue Jan 18, 2005 5:29 am    Post subject: Reply with quote

Darckness wrote:
ETA until this thread (and others like it) cause ciaranm to fly off the handle again: not long enough.

Seriously people, all these threads do is eventually start flame wars between the devs and users about ricing. There's plenty of existing documentation on how/what to set your *FLAGS to right here on these forums and it can all be accessed by using a mystical button. Unfortunately, the button I am referring to is the "Search" button, and you don't learn how to use it properly until you've retired.


huh? When I posted this thread, there was exactly 1 other thread on the forums relating to this topic, and I referenced it in my first post.

ciaranm has already posted here a few times, why don't you read it? :P
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Tue Jan 18, 2005 5:37 am    Post subject: Reply with quote

Dont feed the trolls...moving on.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jan 19, 2005 5:20 am    Post subject: Reply with quote

has anyone tried with

LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"

as per LDFLAGS Central?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
sprite
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2003
Posts: 143
Location: Camarillo, California (USA)

PostPosted: Wed Jan 19, 2005 6:02 am    Post subject: Reply with quote

Code:
LDFLAGS="-Wl,-O1"


trying this now, looks interesting =]
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Wed Jan 19, 2005 6:23 am    Post subject: Reply with quote

taskara wrote:
has anyone tried with

LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"

as per LDFLAGS Central?


--enable-new-dtags is default for recent binutils. i played with --sort-common, but not long enough to make a judgement.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 6 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum