Installing GCC: Configuration
GCC ¼³Ä¡Çϱâ : ȯ°æ¼³Á¤(Configuration)
Like most GNU software, GCC must be configured before it can be built.
This document describes the recommended configuration procedure
for both native and cross targets.
´ëºÎºÐÀÇ GNU ¼ÒÇÁÆ®¿þ¾î¿Í °°ÀÌ,GCC´Â ÄÄÆÄÀÏ(build)µÇ±âÀü¿¡ ¹Ýµå½Ã ȯ°æ¼³Á¤µÇ¾î¾ßÇÑ´Ù.
ÀÌ ¹®¼´Â ³×ÀÌƼºê ¶Ç´Â Å©·Î½º Ÿ°ÙÀ» À§ÇÑ È¯°æ¼³Á¤¿¡ ´ëÇÑ °ÍÀ» º¸¿©ÁØ´Ù.
We use srcdir to refer to the toplevel source directory for
GCC; we use objdir to refer to the toplevel build/object
directory.
¿ì¸®´Â GCCÀÇ Å¾·¹º§ ¼Ò½º µð·ºÅ丮¸¦ srcdir·Î ³ªÅ¸³½´Ù; ¶ÇÇÑ Å¾·¹º§ÀÇ ºôµå/¿ÀºêÁ§Æ®
µð·ºÅ丮¸¦ ³ªÅ¸³»±â À§ÇØ objdir¸¦ »ç¿ëÇÑ´Ù.
First, we highly recommend that GCC be built into a
separate directory than the sources which does not reside
within the source tree. This is how we generally build GCC; building
where srcdir == objdir should still work, but doesn't
get extensive testing; building where objdir is a subdirectory
of srcdir is unsupported.
¸ÕÀú, ¿ì¸®´Â ¼Ò½º µð·ºÅ丮°¡ ¾Æ´Ñ, ¼Ò½ºÆ®¸® ¾È¿¡ ÀÖÁö ¾ÊÀº ´Ù¸¥ º°°³ÀÇ µð·ºÅ丮¿¡ GCC¸¦ ¸¸µé±â(build)¸¦ ±ÇÀåÇÑ´Ù.
ÀÌ°ÍÀº ¿ì¸®°¡ GCC¸¦ ÄÄÆÄÀÏ(build)ÇÏ´Â ÀϹÝÀûÀÎ ¹æ¹ýÀÌ´Ù; srcdir == objdir °÷¿¡¼ ÄÄÆÄÀÏ ÇÏ´Â °ÍÀº ±¤¹üÀ§ÇÑ
½ÇÇèÀ» ÇÒ ¼ö ¾ø°Ô ÇÑ´Ù; objdir°¡ srcdirÀÇ ¼ºê µð·ºÅ丮°¡ µÇ´Â °ÍÀº Áö¿øÇÏÁö ¾Ê´Â´Ù.
Second, when configuring a native system, either "cc" or "gcc" must be in
your path or you must set CC in your environment before running configure.
Otherwise the configuration scripts may fail.
µÎ¹ø°·Î, ³×ÀÌƼºê ½Ã½ºÅÛÀ¸·Î ÄÄÆÄÀÏÇÒ¶§ ȯ°æ¼³Á¤À» Çϱâ ÀÌÀü¿¡ "cc" ³ª "gcc"°¡ ´ç½ÅÀÇ ½ÇÇà°¡´Â path¿¡ Á¸ÀçÇϰųª
´ç½ÅÀÇ ÄÄÇ»ÅÍ È¯°æ¿¡ CC¸¦ ¼³Á¤ÇØ¾ß ÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é ȯ°æ¼³Á¤ ½ºÅ©¸³Å©´Â ½ÇÆÐÇÏ°Ô µÉ °ÍÀÌ´Ù.
To configure GCC:
% mkdir objdir
% cd objdir
% srcdir/configure [target] [options]
GCC¸¦ ¼³Á¤Çϱâ À§Çؼ:
% mkdir objdir
% cd objdir
% srcdir/configure [target] [options]
target specification
Ÿ°Ù ƯÁ¤È(??)
- GCC has code to correctly determine the correct value for
target for nearly all native systems. Therefore, we highly
recommend you not provide a configure target when configuring a
native compiler.
- GCC´Â °ÅÀÇ ¸ðµç ³×ÀÌƼºê ½Ã½ºÅÛÀ» À§ÇØ target¿¡ ´ëÇÑ ¹Ù¸¥ °ªÀ» °áÁ¤ÇÒ ¼ö ÀÖ´Â
Äڵ带 °¡Áö°í ÀÖ´Ù. ±×·¯¹Ç·Î, ¿ì¸®´Â ³×ÀÌƼºê ÄÄÆÄÀÏ·¯¸¦ ȯ°æ¼³ÀýÇÒ¶§ target¼³Á¤À» ÇÏÁö ¾Ê±â¸¦
±ÇÀåÇÑ´Ù.
- target must be specified as --target=target
when configuring a cross compiler;
examples of valid targets would be i960-rtems, m68k-coff, sh-elf, etc.
- Å©·Î½º ÄÄÆÄÀÏ·¯·Î ¼³Á¤ÇÒ¶§ ¿¹¸¦µé¸é, i960-rtems,
m68k-coff, sh-elf µî°ú °°Àº °ÍÀ¸·Î ¼³Á¤ÇÒ ¶§, targetÀ» --target=target°ú °°ÀÌ ÇÔÀ¸·Î½á ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
- Specifying just target instead of --target=target
implies that the host defaults to target.
- --target=targetÇÏ´Â ´ë½Å¿¡ targetÀ» ƯÁ¤ÈÇÏ´Â °ÍÀº È£½ºÆ®¸¦ µðÆúÆ® target À¸·Î ÇÏ´Â °ÍÀ»
ÀǹÌÇÑ´Ù.
options specification
¿É¼Ç ¼³¸í(specification)
Use options to override several configure time options for
GCC. A partial list of supported options:
GCC¸¦ À§ÇÑ ¿©·¯°¡Áö ¼³Á¤½Ã ¿É¼ÇÀ» »ç¿ëÇϱâ À§ÇØ optionsÀ» »ç¿ëÇÑ´Ù.
Áö¿øÇÏ´Â optionsÀÇ ºÎºÐÀûÀÎ ¸®½ºÆ®´Â ´ÙÀ½°ú °°´Ù:
- --prefix=dirname -- Specify the toplevel installation
directory. This is the recommended way to install the tools into a directory
other than the default. The toplevel installation directory defaults to
/usr/local.
- --prefix=dirname -- ¼³Ä¡ÇÒ Å¾·¹º§ µð·ºÅ丮¸¦ Á¤ÇØÁØ´Ù.
µðÆúÆ® ¼³Ä¡ µð·ºÅ丮°¡ ¾Æ´Ñ ´Ù¸¥ µð·ºÅ丮¿¡ ÅøµéÀ» ¼³Ä¡ÇÏ´Â ÃßõÇÏ´Â ¹æ¹ýÀÌ´Ù.
µðÆúÆ®·Î ¼³Ä¡µÇ´Â ž·¹º§ ¼³Ä¡ µð·ºÅ丮´Â /usr/localÀÌ´Ù.
We highly recommend against prefix being the same or a
subdirectory of objdir or vice versa.
¿ì¸®´Â prefix¸¦ objdir¶Ç´Â ´Ù¸¥ °÷ÀÇ ¼ºêµð·ºÅ丮³ª °°Àºµð·ºÅ丮¿Í °°°ÔÇÏ´Â °ÍÀ» °·ÂÈ÷ ¹Ý´ëÇÑ´Ù. (??)
These additional options control where certain parts of the distribution
are installed. Normally you should not need to use these options.
¿©±â¿¡ Ãß°¡ÀûÀÎ ¿É¼ÇµéÀº ÆÐÅ°ÁöÀÇ ÀϺκÐÀÌ ¾îµð¿¡ ¼³Ä¡µÉÁö¸¦ ÄÜÆ®·ÑÇÏ´Â ÀÏÀ» ÇÑ´Ù.
º¸Åë ÀÌ·¯ÇÑ ¿É¼ÇÀº »ç¿ëÇÒ ÇÊ¿ä°¡ ¾ø´Ù.
- --with-local-prefix=dirname -- Specify the installation
directory for local include files. The default is /usr/local.
- --with-local-prefix=dirname -- ·ÎÄà ÀÎŬ·çµå ÈÀϵéÀ» À§ÇÑ ¼³Ä¡ µð·ºÅ丮¸¦ ¼³Á¤ÇÑ´Ù.
µðÆúÆ®´Â /usr/local ÀÌ´Ù.
- --with-gxx-include-dir=dirname -- Specify the installation
directory for g++ header files. The default is /usr/local/include/g++.
- --with-gxx-include-dir=dirname -- g++ ÇØ´õ ÈÀϵéÀ» À§ÇÑ ¼³Ä¡ µð·ºÅ丮¸¦ ¼³Á¤ÇÑ´Ù.
µðÆúÆ®´Â /usr/local/include/g++ÀÌ´Ù.
- --enable-shared -- Build shared versions of the C++ runtime
libraries if supported --disable-shared is the default.
- --enable-shared -- ¸¸¾à Áö¿øµÇ´Â --disable-sharedÀÌ µðÆúÆ®¶ó¸é C++ ·±Å¸ÀÓ ¶óÀ̺귯¸®ÀÇ °øÀ¯¹öÀüÀ» ¸¸µç´Ù.
- --enable-haifa -- Enable the new Haifa instruction scheduler
in the compiler; the new scheduler can significantly improve code on some
targets.
For EGCS 1.0.x releases --disable-haifa is the default on all
platforms except the HPPA.
For newer releases --disable-haifa is the default on all
platforms except the alpha, hppa, powerpc, rs6000, SPARC and m32r.
- --enable-haifa -- ÄÄÆÄÀÏ·¯¿¡¼ »õ·Î¿î Haifa ÀνºÆ®·°¼Ç ½ºÄÉÁì·¯¸¦ »ç¿ë°¡´ÉÇÏ°Ô ÇÑ´Ù;
»õ·Î¿î ½ºÄÉÁì·¯´Â °°Àº Ÿ°Ù¸Ó½ÅÀ§¿¡¼ ´«¿¡¶ç°Ô Äڵ带 °³¼±½ÃŲ´Ù.
EGCS 1.0.x releasesÀ§Çؼ HPPA¸¦ Á¦¿ÜÇÑ ¸ðµç Ç÷§Æû¿¡¼´Â --disable-haifaÀÌ µðÆúÆ®ÀÌ´Ù.
´õ »õ·Î¿î releases À§Çؼ´Â alpha, hppa, powerpc, rs6000, SPARC, m32r¸¦ Á¦¿ÜÇÑ ¸ðµç Ç÷§Æû¿¡¼
--disable-haifa°¡ µðÆúÆ®ÀÌ´Ù.
- --with-gnu-as -- Specify that the compiler should assume the GNU
assembler (aka gas) is available.
- --with-gnu-as -- ÄÄÆÄÀÏ·¯°¡ GNU ¾î¼Àºí·¯(aka gas)°¡ »ç¿ë°¡´ÉÇÏ´Ù°í »ý°¢ÇÏ°ÔÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù.
- --with-gnu-ld -- Specify that the compiler should assume the GNU
linker (aka gld) is available.
- --with-gnu-ld -- ÄÄÆÄÀÏ·¯°¡ GNU ¸µÄ¿(aka gld)°¡ »ç¿ë°¡´ÉÇÏ´Ù°í »ý°¢ÇÏ°ÔÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù.
- --with-stabs -- Specify that stabs debugging information should be used
instead of whatever format the host normally uses. Normally GCC uses the
same debug format as the host system.
- --with-stabs -- stabs µð¹ö±ë ÀÎÆ÷¸ÞÀ̼ÇÀÌ È£½ºÆ®¿¡¼ º¸Åë »ç¿ëÇÏ´Â Æ÷¸Ë ´ë½Å¿¡ »ç¿ëµÇ¾î¾ß ÇÔÀ»
¼³Á¤ÇÑ´Ù. º¸Åë GCC´Â È£½ºÆ®¿¡ ÀÖ´Â °°Àº µð¹ö±ë Æ÷¸ËÀ» »ç¿ëÇÑ´Ù.
- --enable-multilib -- Specify that multiple target libraries
should be built to support different target variants, calling conventions,
etc. This is the default.
- --enable-multilib -- ¿©·¯ ´Ù¸¥ Ÿ°Ù¸Ó½Å°ú convention È£ÃâµîÀ» Áö¿øÇϱâÀ§ÇÑ ´ÙÁß Å¸°Ù¸Ó½Å ¶óÀ̺귯¸®µéÀ»
¸¸µéÁö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ ¼³Á¤Àº µðÆúÆ®·Î µÇ¾îÀÖ´Ù.
- --enable-threads -- Specify that the target supports threads.
This affects the Objective-C compiler and runtime library, and exception
handling for other languages like C++ and Java.
- --enable-threads -- Ÿ°ÙÀÌ ¾²·¹µå¸¦ Áö¿øÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ°ÍÀº C++°ú Java¿Í °°Àº ´Ù¸¥ ¾ð¾îµéÀ» À§ÇÑ
Objective-C ÄÄÆÄÀÏ·¯, ·±Å¸ÀÓ ¶óÀ̺귯¸®, ¿¹¿Ü 󸮵鿡 ¿µÇâÀ» ¹ÌÄ£´Ù.
- --enable-threads=lib -- Specify that lib is the
thread support library. This affects the Objective-C compiler and
runtime library, and exception handling for other languages like C++ and
Java.
- --enable-threads=lib -- lib°¡ ¾²·¹µå¸¦ Áö¿øÇÏ´Â ¶óÀ̺귯ÀÓÀ» ³ªÅ¸³½´Ù.
ÀÌ°ÍÀº C++°ú Java¿Í °°Àº ´Ù¸¥ ¾ð¾îµéÀ» À§ÇÑ Objective-C ÄÄÆÄÀÏ·¯, ·±Å¸ÀÓ ¶óÀ̺귯¸®,
¿¹¿Ü 󸮵鿡 ¿µÇâÀ» ¹ÌÄ£´Ù.
- --with-cpu=cpu -- Specify which cpu variant the
compiler should generate code for by default. This is currently
only supported on the some ports, specifically arm, powerpc, and
SPARC. If configure does not recognize the model name (e.g. arm700,
603e, or ultrasparc) you provide, please check the configure script
for a complete list of supported models.
- --with-cpu=cpu -- ÄÄÆÄÀÏ·¯°¡ ¾î¶² cpu¸¦ ´ë»óÀ¸·Î
Äڵ带 ¸¸µé¾î³¾Áö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ°ÍÀº ÇöÀç ÇöÀç ´ÜÁö ¸î¸î ports ±×¸®°í
Ưº°ÇÏ°Ô arm, powerpc, SPARC¸¦ Áö¿øÇÏ°í ÀÖ´Ù. ¸¸¾à Á¦°øµÇ´Â ¸ðµ¨À̸§(¿¹¸¦µé¸é, arm700, 603e, or ultrasparc
)À» ÀνÄÇÏÁö ¾Êµµ·Ï Çϱâ À§Çؼ´Â, ºÎµð Áö¿øÇÏ´Â ¸ðµ¨ÀÇ ¿ÏÀüÇÑ ¸®½ºÆ®¿¡¼ ȯ°æ¼³Á¤ ½ºÅ©¸³Æ®¸¦ üũÇغ¸±â
¹Ù¶õ´Ù. (??)
- --enable-target-optspace -- Specify that target libraries
should be optimized for code space instead of code speed. This is the
default for the m32r platform.
- --enable-target-optspace -- ÄÚµåÀÇ ¼Óµµ ´ë½Å¿¡ ÄÚµåÀÇ °ø°£ Ãø¸é¿¡¼ Ÿ°Ù ¶óÀ̺귯¸®µéÀ»
ÃÖÀûÈÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù. m32r Ç÷§Æû¿¡¼´Â ÀÌ°ÍÀÌ µðÆúÆ®ÀÌ´Ù.
- --enable-cpp -- Specify that a shell script which emulates
traditional cpp functionality should be installed.
- --enable-cpp -- ÀüÅëÀûÀÎ cpp ±â´É(functionality)À» ¿¡¹Ä·¹ÀÌÆ®ÇÏ´Â ½© ½ºÅ©¸³Æ®¸¦
ÀνºÅçÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù.
- --enable-cpplib -- Specify that the functionality of CPP should
be integrated into the compiler itself. This is still under development, but
may be useful in limited situations. This option is never enabled by default.
- --enable-cpplib -- CPPÀÇ ±â´É(functionality)µéÀÌ ÄÄÆÄÀÏ·¯ ±× ÀÚü¿¡ ÇÕÃÄÁúÁö¸¦ ¼³Á¤ÇÑ´Ù.
ÀÌ°ÍÀº ¿©ÀüÈ÷ °³¹ßÁß°ÍÀÌÁö¸¸, Á¦ÇÑµÈ »óȲ¿¡¼´Â À¯¿ëÇÏ°Ô »ç¿ëµÉ °ÍÀÌ´Ù.
ÀÌ ¿É¼ÇÀº µðÆúÆ®·Î °áÄÚ »ç¿ëµÇÁö ¾Ê´Â´Ù.
- --without-fast-fixincludes -- Specify that the old, slower
method of fixing the system header files should be used.
EGCS 1.1.x and older releases default to the slow version. GCC 2.95 and
newer releases will default to the fast version.
- --without-fast-fixincludes -- ½Ã½ºÅÛ ÇØ´õ ÈÀϵéÀ» ¼öÁ¤ÇÏ´Â ¿À·¡µÈ ´À¸° ÇÔ¼ö(method)¸¦ »ç¿ëÇÒÁö¸¦
¼³Á¤ÇÑ´Ù. EGCS 1.1.x °ú ´õ ¿À·¡µÈ ¹öÀüÀº ´À¸° ¹öÀüÀ» µðÆúÆ®·Î ÇÏ°í ÀÖ´Ù. GCC 2.95 ¿Í ±× ÀÌÈÄ ¹öÀüÀº ºü¸¥ ¹öÀüÀ»
µðÆúÆ®·Î ÇÏ°í ÀÖ´Ù.
- --enable-version-specific-runtime-libs -- Specify that runtime
libraries should be installed in the compiler specific subdirectory
(${libsubdir}) rather than the usual places.
In addition, libstdc++'s include files will be installed in
${libsubdir}/include/g++ unless you overruled it by using
--with-gxx-include-dir=dirname.
Using this option is particularly useful if you intend to use several
versions of GCC in parallel. This is currently supported by libf2c
and libstdc++.
- --enable-version-specific-runtime-libs -- ·±Å¸ÀÓ ¶óÀ̺귯¸®µéÀÌ º¸ÅëÀÇ Àå¼Òº¸´Ù ÄÄÆÄÀÏ·¯ ƯÁ¤ÀÇ ¼ºêµð·ºÅ丮
(${libsubdir})¿¡ ¼³Ä¡µÇ¾î¾ßÇÔÀ» ¼³Á¤ÇÑ´Ù. °Ô´Ù°¡, ¸¸¾à --with-gxx-include-dir=dirname¸¦ »ç¿ëÇÔÀ¸·Î
±×°ÍÀ» µÚ¾þÁö ¾Ê´Â´Ù¸é ${libsubdir}/include/g++¿¡ libstdc++'ÀÇ ÀÎŬ·çµå ÈÀϵéÀÌ ¼³Ä¡µÉ °ÍÀÌ´Ù.
¸¸¾à ´ç½ÅÀÌ º´·ÄÀûÀ¸·Î ¿©·¯ ¹öÀüÀÇ GCC¸¦ »ç¿ëÇϱâ·Î Çß´Ù¸é, ÀÌ ¿É¼ÇÀ» »ç¿ëÇÑ´Ù´Â °ÍÀº ¸Å¿ì À¯¿ëÇÑ ÀÏÀÌ´Ù.
ÀÌ°ÍÀº ÇöÀç libf2c¿Í libstdc++¿¡ ÀÇÇØ Áö¿øµÇ°í ÀÖ´Ù.
- --enable-languages=lang1,lang2,...
-- Specify that only a particular subset of compilers and their runtime libraries
should be built. For a list of valid values for langx you can issue
the following command in the gcc directory of your GCC source tree:
grep language= */config-lang.in
Currently, you can use any of the following: CHILL, c++,
f77, java and objc. Please note, that this switch
does not work with EGCS 1.1.2 or older versions of egcs. It is supported
in GCC 2.95 and newer versions.
If you do not pass this flag, all languages available in the gcc sub-tree
will be configured. Re-defining LANGUAGES when calling make bootstrap
*does not* work anymore, as those language sub-directories might not have been
configured!
- --enable-languages=lang1,lang2,...
-- ÄÄÆÄÀÏ·¯³ª ±×µéÀÇ ·±Å¸ÀÓ ¶óÀ̺귯¸®µéÀÇ Æ¯º°ÇÑ ºÎºÐ¸¸ÀÌ ºôµåµÇ¾î¾ß ÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù.
langx¿¡ »ç¿ë°¡´ÉÇÑ °ªµéÀÇ ¸ñ·Ï¿¡¼ ´ç½ÅÀÇ GCC ¼Ò½ºÆ®¸®¿¡¼ÀÇ gcc µð·ºÅ丮¾È¿¡¼
´ÙÀ½°ú °°Àº Ä¿¸Çµå¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Ù:
grep language= */config-lang.in
ÇöÀç, ´ç½ÅÀº ´ÙÀ½°ú °°Àº °ÍÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù: CHILL,
c++, f77, java and objc. ÀÌ ½ºÀ§Ä¡(switch)´Â EGCS 1.1.2³ª ±× ÀÌ»óÀÇ ¹öÀü¿¡¼´Â
ÀÛµ¿ÇÏÁö ¾ÊÀ½À» ÁÖÁöÇϱ⠹ٶõ´Ù.
¸¸¾à ´ç½ÅÀÌ ÀÌ Ç÷¡±×¸¦ Áö³ªÄ¡Áö ¾Ê´Â´Ù¸é, gcc ¼ºêÆ®¸®¿¡ ÀÖ´Â ¸ðµç ¾ð¾îµéÀ» »ç¿ë°¡´ÉÇϵµ·Ï ¼³Á¤ÇÒ °ÍÀÌ´Ù.
make bootstrap¸¦ È£ÃâÇÒ¶§ ´Ù½Ã Á¤ÀÇÇÑ ¾ð¾îµé(LANGUAGES)Àº ´õ ÀÌ»ó ÀÛµ¿ÇÏÁö *¾ÊÀ» °ÍÀÌ´Ù.* ±×µéÀÇ ¾ð¾î
¼ºêµð·ºÅ丮µéÀº ¼³Á¤µÇ¾îÁöÁö ¾ÊÀ» °ÍÀÌ´Ù!
- --with-dwarf2 -- Specify that the compiler should use DWARF2
debugging information as the default.
- --with-dwarf2 -- ÄÄÆÄÀÏ·¯°¡ µðÆúÆ®·Î DWARF2 µð¹ö±ë Á¤º¸¸¦ »ç¿ëÇÒÁö¸¦ ¼³Á¤ÇÑ´Ù.
Some options which only apply to building cross compilers:
¸î¸î ¿É¼ÇµéÀº Å©·Î½º ÄÄÆÄÀÏ·¯¸¦ ¸¸µé¶§ ´ÜÁö »ç¿ëµÈ´Ù:
- --with-headers=dir -- Specifies a directory which has
target include files.
This options is required when building a cross
compiler, if ${prefix}/${target}/sys-include doesn't pre-exist.
These include files will be copied into the gcc install directory.
Fixincludes will be run on these files to make them compatible with gcc.
- --with-headers=dir -- Ÿ°Ù ÀÎŬ·çµå ÈÀϵéÀ» °¡Áö°í ÀÖ´Â µð·ºÅ丮ÀÇ À§Ä¡¸¦ ¼³Á¤ÇÑ´Ù.
${prefix}/${target}/sys-includeÀÌ ¹Ì¸® Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é, Å©·Î½º ÄÄÆÄÀÏ·¯¸¦ ¸¸µé½Ã¿¡
ÀÌ ¿É¼ÇÀº ¹Ýµå½Ã ÇÊ¿äÇÏ´Ù. ÀÌ ÀÎŬ·çµå ÈÀϵéÀº gcc ¼³Ä¡ µð·ºÅ丮·Î º¹»çµÇ¾îÁú °ÍÀÌ´Ù.
¼öÁ¤µÈ ÀÎŬ·çµåµéÀº gcc¿Í ÇÔ²² ȣȯµÇµµ·Ï ¸¸µé±â À§ÇØ ÀÌ ÈÀϵé°ú ÇÔ²² ½ÇÇàµÇ¾îÁú °ÍÀÌ´Ù.
- --with-libs="dir1 dir2 ... dirN" -- Specifies a list of
directories which contain the target runtime libraries. These libraries will
be copied into the gcc install directory.
- --with-libs="dir1 dir2 ... dirN" -- Ÿ°Ù ·±Å¸ÀÓ ¶óÀ̺귯¸®µéÀ» Æ÷ÇÔÇÏ°í ÀÖ´Â µð·ºÅ丮µéÀ»
¼³Á¤ÇÑ´Ù. ÀÌ ¶óÀ̺귯¸®µéÀº gcc ¼³Ä¡ µð·ºÅ丮¿¡ º¹»çµÇ¾îÁú °ÍÀÌ´Ù.
- --with-newlib -- Specifies that "newlib" is being used as the target
C library. This causes __eprintf to be omitted from libgcc.a on the
assumption that it will be provided by newlib.
- --with-newlib -- Ÿ°Ù C ¶óÀ̺귯¸®·Î½á »ç¿ëµÇ¾îÁö´Â "newlib"¸¦ ¼³Á¤ÇÑ´Ù. À̿ɼÇÀº newlib¿¡ ÀÇÇØ Á¦°øµÇ¾î
Áú °ÍÀ̶ó´Â °¡Á¤ÇÏ¿¡ libgcc.o·Î ºÎÅÍ __eprintf¸¦ »ý·«ÇÏ°Ô ¸¸µç´Ù.
Note that each --enable option has a corresponding --disable option and
that each --with option has a corresponding --without option.
°¢°¢ÀÇ --enable¿É¼ÇÀº °¢°¢¿¡ ´ëÀÀÇÏ´Â --disable ¿É¼ÇÀ» °¡Áö°í ÀÖ´Ù.
°¢°¢ÀÇ --with¿É¼ÇÀº °¢°¢¿¡ ´ëÀÀÇÏ´Â --without ¿É¼ÇÀ» °¡Áö°í ÀÖ´Ù.
Return to the GCC Installation page
GCC ¼³Ä¡Çϱâ ÆäÀÌÁö·Î µ¹¾Æ°¡±â