Where is “gcc_tooldir”

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Under Cross-Compiler-Specific Options, it says:




The default value, in case --with-sysroot is not given an argument, is
$gcc_tooldir/sys-root.




but it appears that gcc_tooldir is not defined. Is this a nickname for
something else, and also where is it "normally"?







share|improve this question



















  • Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
    – John Bollinger
    May 7 at 15:56










  • @JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
    – Steven Penny
    May 7 at 16:56














up vote
2
down vote

favorite












Under Cross-Compiler-Specific Options, it says:




The default value, in case --with-sysroot is not given an argument, is
$gcc_tooldir/sys-root.




but it appears that gcc_tooldir is not defined. Is this a nickname for
something else, and also where is it "normally"?







share|improve this question



















  • Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
    – John Bollinger
    May 7 at 15:56










  • @JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
    – Steven Penny
    May 7 at 16:56












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Under Cross-Compiler-Specific Options, it says:




The default value, in case --with-sysroot is not given an argument, is
$gcc_tooldir/sys-root.




but it appears that gcc_tooldir is not defined. Is this a nickname for
something else, and also where is it "normally"?







share|improve this question











Under Cross-Compiler-Specific Options, it says:




The default value, in case --with-sysroot is not given an argument, is
$gcc_tooldir/sys-root.




but it appears that gcc_tooldir is not defined. Is this a nickname for
something else, and also where is it "normally"?









share|improve this question










share|improve this question




share|improve this question









asked May 3 at 1:08









Steven Penny

2,28821635




2,28821635











  • Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
    – John Bollinger
    May 7 at 15:56










  • @JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
    – Steven Penny
    May 7 at 16:56
















  • Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
    – John Bollinger
    May 7 at 15:56










  • @JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
    – Steven Penny
    May 7 at 16:56















Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
– John Bollinger
May 7 at 15:56




Just to be clear: it is your intention to build a cross-compiling version of GCC, but not to build the GNU C library from the same source tree, yes? Because that's the use case for the --with-sysroot option.
– John Bollinger
May 7 at 15:56












@JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
– Steven Penny
May 7 at 16:56




@JohnBollinger yes github.com/svnpenn/glade/blob/master/mingw-w64-x86-64/gcc/…
– Steven Penny
May 7 at 16:56










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted
+50











but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?




gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different in form. You are not meant to set it by hand, though you may of course use the --with-sysroot configure option to choose your own directory for the target tools. Per the GCC build documentation:




When installing cross-compilers, GCC’s executables are not only installed into bindir, that is, exec-prefix/bin, but additionally into exec-prefix/target-alias/bin, if that directory exists. Typically, such tooldirs hold target-specific binutils, including assembler and linker.




(Emphasis in the original.)



The standard tooldir name is thus something of the form '/usr/x86_64-w64-mingw32', to lift one from the Glade example you presented in comments.






share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441431%2fwhere-is-gcc-tooldir%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted
    +50











    but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?




    gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different in form. You are not meant to set it by hand, though you may of course use the --with-sysroot configure option to choose your own directory for the target tools. Per the GCC build documentation:




    When installing cross-compilers, GCC’s executables are not only installed into bindir, that is, exec-prefix/bin, but additionally into exec-prefix/target-alias/bin, if that directory exists. Typically, such tooldirs hold target-specific binutils, including assembler and linker.




    (Emphasis in the original.)



    The standard tooldir name is thus something of the form '/usr/x86_64-w64-mingw32', to lift one from the Glade example you presented in comments.






    share|improve this answer

























      up vote
      1
      down vote



      accepted
      +50











      but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?




      gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different in form. You are not meant to set it by hand, though you may of course use the --with-sysroot configure option to choose your own directory for the target tools. Per the GCC build documentation:




      When installing cross-compilers, GCC’s executables are not only installed into bindir, that is, exec-prefix/bin, but additionally into exec-prefix/target-alias/bin, if that directory exists. Typically, such tooldirs hold target-specific binutils, including assembler and linker.




      (Emphasis in the original.)



      The standard tooldir name is thus something of the form '/usr/x86_64-w64-mingw32', to lift one from the Glade example you presented in comments.






      share|improve this answer























        up vote
        1
        down vote



        accepted
        +50







        up vote
        1
        down vote



        accepted
        +50




        +50





        but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?




        gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different in form. You are not meant to set it by hand, though you may of course use the --with-sysroot configure option to choose your own directory for the target tools. Per the GCC build documentation:




        When installing cross-compilers, GCC’s executables are not only installed into bindir, that is, exec-prefix/bin, but additionally into exec-prefix/target-alias/bin, if that directory exists. Typically, such tooldirs hold target-specific binutils, including assembler and linker.




        (Emphasis in the original.)



        The standard tooldir name is thus something of the form '/usr/x86_64-w64-mingw32', to lift one from the Glade example you presented in comments.






        share|improve this answer














        but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?




        gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different in form. You are not meant to set it by hand, though you may of course use the --with-sysroot configure option to choose your own directory for the target tools. Per the GCC build documentation:




        When installing cross-compilers, GCC’s executables are not only installed into bindir, that is, exec-prefix/bin, but additionally into exec-prefix/target-alias/bin, if that directory exists. Typically, such tooldirs hold target-specific binutils, including assembler and linker.




        (Emphasis in the original.)



        The standard tooldir name is thus something of the form '/usr/x86_64-w64-mingw32', to lift one from the Glade example you presented in comments.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered May 7 at 19:25









        John Bollinger

        2168




        2168






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441431%2fwhere-is-gcc-tooldir%23new-answer', 'question_page');

            );

            Post as a guest













































































            osWeZdN8B92qpa8ijB Er,Hdb 71DsmKGTkN I KEVax,4KjP1fq8y leLY1WGb8EmI,v7sGjZwB4g
            I8,Dfb ndm0pNkUjR,xrKexr2PV8covfi nk05oaOPxMMVwtcfk gz,xe0Zx,RffEdyZrb i07wI,OrYPXXV4an23EPT0J7Ag

            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            How many registers does an x86_64 CPU actually have?

            Displaying single band from multi-band raster using QGIS