[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get internals help



On Sat, Sep 06, 2003 at 03:54:18PM +0100, Steve Kemp wrote:

>   If they are global defaults, a la Gentoo, perhaps a small shell script
>  would do the job:
> 
>  #!/bin/sh
>  #
>  # ~/bin/gcc - Give GCC global flags
>  #
>  /usr/bin/gcc `cat /etc/gcc-options.default` "$*"
> 
>   Obviously that's just a bare idea, a more complete solution would have
>  to look out for conflicting arguments, and work with G++ etc.
> 
>   That would give you the oppertunity to specify global flags for GCC
>  for all your builds.

If the idea were to support different compiler flags (which was not how I
interpreted what has been said so far), then I think the most sensible thing
would be simply to say that packages should honor the CFLAGS and CXXFLAGS
variables set in the build environment.

-- 
 - mdz



Reply to: