您的位置:程序门 -> linux/unix社区 -> 系统维护与使用区



gcc -b/usr/bin -b的含义


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


gcc -b/usr/bin -b的含义[已结贴,结贴人:nyhenry2]
发表于:2008-01-11 06:56:43 楼主
cc="gcc   -b/usr/bin"   ../sources/binutils-2.17/configure  
中的   -b什么含义啊,我查过bash手册里面只说了单独的   -b   是   括号扩展的意思
-b/usr/bin连在一起是什么意思啊,这是一个什么语法现象呢。。
发表于:2008-01-11 09:16:051楼 得分:20
              -bprefix
                      this   option   specifies   where   to   find   the   EXECutables,   libraries,
                      include   files,   and   data   files   of   the   compiler   itself.

                      the   compiler   driver   program   runs   one   or   more   of   the   subprograms
                      cpp,   cc1,   as   and   ld.     it   tries   prefix   as   a   prefix   for   each   program
                      it   tries   to   run,   both   with   and   without   machine/version/.

                      for   each   subprogram   to   be   run,   the   compiler   driver   first   tries   the
                      -b   prefix,   if   any.     if   that   name   is   not   found,   or   if   -b   was   not
                      specified,   the   driver   tries   two   standard   prefixes,   which   are
                      /usr/lib/gcc/   and   /usr/local/lib/gcc/.     if   neither   of   those   results
                      in   a   file   name   that   is   found,   the   unmodified   program   name   is
                      searched   for   using   the   directories   specified   in   your   path   environ-
                      ment   variable.

                      the   compiler   will   check   to   see   if   the   path   provided   by   the   -b
                      refers   to   a   directory,   and   if   necessary   it   will   add   a   directory
                      separator   character   at   the   end   of   the   path.

                      -b   prefixes   that   effectively   specify   directory   names   also   apply   to
                      libraries   in   the   linker,   because   the   compiler   translates   these
                      options   into   -l   options   for   the   linker.     they   also   apply   to
includes   files   in   the   preprocessor,   because   the   compiler   translates
                      these   options   into   -isystem   options   for   the   preprocessor.     in   this
                      case,   the   compiler   appends   include   to   the   prefix.

                      the   run-time   support   file   libgcc.a   can   also   be   searched   for   using
                      the   -b   prefix,   if   needed.     if   it   is   not   found   there,   the   two   stan-
                      dard   prefixes   above   are   tried,   and   that   is   all.     the   file   is   left
                      out   of   the   link   if   it   is   not   found   by   those   means.

                      another   way   to   specify   a   prefix   much   like   the   -b   prefix   is   to   use
                      the   environment   variable   gcc_EXEC_prefix.

                      as   a   special   kludge,   if   the   path   provided   by   -b   is   [dir/]stagen/,
                      where   n   is   a   number   in   the   range   0   to   9,   then   it   will   be   replaced
                      by   [dir/]include.     this   is   to   help   with   boot-strapping   the   com-
                      piler.
发表于:2008-01-11 10:51:302楼 得分:0
henryfour好厉害阿,多谢你了,20分送上:)
发表于:2008-01-11 19:34:013楼 得分:0
哎....才发现你也是   henry   哈


快速检索

最新资讯
热门点击