View previous topic :: View next topic |
Author |
Message |
gkmac Guru
Joined: 19 Jan 2003 Posts: 333 Location: West Sussex, UK
|
Posted: Fri Jan 07, 2005 11:57 pm Post subject: |
|
|
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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Thu Jan 13, 2005 3:28 pm Post subject: |
|
|
it's me again
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 |
|
|
oberyno Guru
Joined: 15 Feb 2004 Posts: 467 Location: /bin/zsh
|
Posted: Thu Jan 13, 2005 4:07 pm Post subject: |
|
|
blueSceaDa wrote: | it's me again
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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Thu Jan 13, 2005 4:22 pm Post subject: |
|
|
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 |
|
|
oberyno Guru
Joined: 15 Feb 2004 Posts: 467 Location: /bin/zsh
|
Posted: Thu Jan 13, 2005 4:35 pm Post subject: |
|
|
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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Thu Jan 13, 2005 4:39 pm Post subject: |
|
|
no don't want to waste that time
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 |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Thu Jan 13, 2005 6:06 pm Post subject: |
|
|
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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Thu Jan 13, 2005 6:09 pm Post subject: |
|
|
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 |
|
|
Lokheed Veteran
Joined: 12 Jul 2004 Posts: 1295 Location: /usr/src/linux
|
Posted: Thu Jan 13, 2005 6:18 pm Post subject: |
|
|
blueSceaDa wrote: | 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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Thu Jan 13, 2005 6:36 pm Post subject: |
|
|
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 |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Thu Jan 13, 2005 9:04 pm Post subject: |
|
|
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 |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Thu Jan 13, 2005 9:16 pm Post subject: |
|
|
Another LDFLAGS success report. Whole system compiled with LDFLAGS="-Wl,-O1", works very well. |
|
Back to top |
|
|
Mystilleef Guru
Joined: 27 Apr 2003 Posts: 561 Location: Earth
|
|
Back to top |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Fri Jan 14, 2005 3:47 pm Post subject: |
|
|
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 |
|
|
Mystilleef Guru
Joined: 27 Apr 2003 Posts: 561 Location: Earth
|
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Sun Jan 16, 2005 3:30 am Post subject: |
|
|
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 |
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 |
|
|
ian! Bodhisattva
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Sun Jan 16, 2005 2:08 pm Post subject: |
|
|
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 |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Sun Jan 16, 2005 3:18 pm Post subject: |
|
|
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 |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Mon Jan 17, 2005 5:48 am Post subject: |
|
|
LDFLAGS="-Wl,O1" since 12/05/04. no problems. _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Tue Jan 18, 2005 5:17 am Post subject: |
|
|
EDIT: my bad...somehow I posted this in the wrong thread .
/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 |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Tue Jan 18, 2005 5:29 am Post subject: |
|
|
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 |
|
|
Lokheed Veteran
Joined: 12 Jul 2004 Posts: 1295 Location: /usr/src/linux
|
Posted: Tue Jan 18, 2005 5:37 am Post subject: |
|
|
Dont feed the trolls...moving on. |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Jan 19, 2005 5:20 am Post subject: |
|
|
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 |
|
|
sprite Tux's lil' helper
Joined: 10 Jun 2003 Posts: 143 Location: Camarillo, California (USA)
|
Posted: Wed Jan 19, 2005 6:02 am Post subject: |
|
|
trying this now, looks interesting =] |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Wed Jan 19, 2005 6:23 am Post subject: |
|
|
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 |
|
|
|