Unix Technical Forum

package compilation flags

This is a discussion on package compilation flags within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> What are the default flags and settings used in slackware to compile the packages from source? Any hints or ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:53 AM
incognito
 
Posts: n/a
Default package compilation flags

What are the default flags and settings used in slackware to compile the
packages from source?

Any hints or guidance would be most appreciated.

Thank you.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:53 AM
Eef Hartman
 
Posts: n/a
Default Re: package compilation flags

incognito <bogus@email.com> wrote:
> What are the default flags and settings used in slackware to compile the
> packages from source?


Depends on the package. See the *build cq. *SlackBuild scripts in the
respective source dirs.
Pat doesn't use a "one size fits all" for creating the packages <grin>
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 10:54 AM
garbagedisposal
 
Posts: n/a
Default Re: package compilation flags

On Thu, 22 Apr 2004 03:03:38 +0000, incognito wrote:

> What are the default flags and settings used in slackware to compile the
> packages from source?
>
> Any hints or guidance would be most appreciated.
>
> Thank you.


Edit your /etc/profile

Ypu may add some flags thusly :

export CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
export CPPFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
export CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"

This is an example only for my PentiumIV CPU. You will set the flags
appropriately for your CPU or you may leave them out & accept the default.
Most of the Slackware packages have i486 & some i686 flags.

--
Regards
garbage
garbagedisposal@despammed.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 10:59 AM
Mark Hill
 
Posts: n/a
Default Re: package compilation flags

On Thu, 22 Apr 2004 11:10:22 GMT,
garbagedisposal <garbagedisposal@despammed.com> wrote:
>
> export CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
> export CPPFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
> export CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"


FWIW, something like the following can be easier to maintain:

export CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
export CPPFLAGS=${CXXFLAGS}
export CFLAGS=${CXXFLAGS}


--
Mark Hill <usenet@mark.ukfsn.org> (devnull address not read)
GPG KeyID: 4A3B58AC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 10:59 AM
garbagedisposal
 
Posts: n/a
Default Re: package compilation flags

On Sun, 25 Apr 2004 00:53:53 +0000, Mark Hill wrote:

> On Thu, 22 Apr 2004 11:10:22 GMT,
> garbagedisposal <garbagedisposal@despammed.com> wrote:
>>
>> export CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
>> export CPPFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
>> export CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"

>
> FWIW, something like the following can be easier to maintain:
>
> export CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
> export CPPFLAGS=${CXXFLAGS}
> export CFLAGS=${CXXFLAGS}


Hey thanks Mark!

--
Regards
garbage
garbagedisposal@despammed.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com