[lkml]   [2002]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: How to do -nostdinc?
    On Sun, Dec 15, 2002 at 11:06:41PM +1100, Keith Owens wrote:
    > There are two ways of setting the -nostdinc flag in the kernel Makefile :-
    > (1) -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
    > (2) -nostdinc -iwithprefix include
    > The first format breaks with non-English locales, however the fix is trivial.
    > (1a) -nostdinc $(shell LANG=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

    Wouldn't LC_ALL=C be more reliable?

    Marius Gedminas
    No proper program contains an indication which as an operator-applied
    occurrence identifies an operator-defining occurrence which as an
    indication-applied occurrence identifies an indication-defining occurrence
    different from the one identified by the given indication as an
    indication-applied occurrence.
    -- ALGOL 68 Report
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:31    [W:0.020 / U:35.216 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site