[ubuntu-uk] CFLAGS Manipulation in Ubuntu

Stuart Bird stuart.bird1 at googlemail.com
Tue May 4 15:51:32 BST 2010


On 4 May 2010 14:29, Matthew Macdonald-Wallace <
matthew at truthisfreedom.org.uk> wrote:

> Quoting Stuart Bird <stuart.bird1 at googlemail.com>:
>
> > Hi All
> >
> > Does anyone know how I can check the "CFLAGS" settings in Ubuntu (10.4
> x64).
> > I have a need to run an application that depends on these settings to
> > optimise speed but have found that Ubuntu has no "make.conf" file which
> is
> > where I would normally expect to find/tweak these settings.
>
> Gentoo user eh? We'll have none of that "compile from source" nonsense
> around here laddy, it's a binary distro don't-cha-know... :P [0]
>
> > Basically I need to ensure that Ubuntu is multiprocessor aware and that
> it
> > is making use of all the processors and/or cores when a program designed
> to
> > use them all is run.
>
> As far as I can tell (running Lucid x86_64 on  macbook pro 4.1 at the
> moment) all apps that require it are multi-processor aware.
>
> If you want to recompile, just export the CFLAGS variable before you
> recompile the code.
>
> Kind regards,
>
> Matt
>
> [0] I've used Gentoo for years, it's still a favourite of mine for
> servers, I just got fed up with a desktop taking 14 days to build!
> --
> Matthew Macdonald-Wallace
> matthew at truthisfreedom.org.uk
> http://www.truthisfreedom.org.uk/
>
> --
> ubuntu-uk at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
>

Thanks to all that posted a reply. The issue is now sorted as a result of me
re-reading the man pages properly this time and noticing that you can set
the required flag as an option when you build the run command at the shell.
So no need to mess with system wide settings for one application as someone
pointed out. Interestingly the 15GiB file was processed seven minutes faster
with the flag set than without so at least I know it works :)

Lesson learnt: RTFM (thoroughly)

Matthew

> I just got fed up with a desktop taking 14 days to build! <

I know what you mean. The phrase "# emerge -uavDNt world" still brings me
out in a cold sweat :)

I seem to remember a "Ubentu" or "Genbuntu" fork being talked about in the
past but don't know if it ever got off the ground?

Overall though, like you I appreciate the straightforward way that Ubuntu
does things on the desktop. I am still in the process of testing it as a
platform for my work (digital forensics) but it's looking good so far.

Stu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100504/06abb332/attachment-0001.htm 


More information about the ubuntu-uk mailing list