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

Ÿ°Ù ƯÁ¤È­(??)

options specification

¿É¼Ç ¼³¸í(specification)

Use options to override several configure time options for GCC. A partial list of supported options:

GCC¸¦ À§ÇÑ ¿©·¯°¡Áö ¼³Á¤½Ã ¿É¼ÇÀ» »ç¿ëÇϱâ À§ÇØ optionsÀ» »ç¿ëÇÑ´Ù. Áö¿øÇÏ´Â optionsÀÇ ºÎºÐÀûÀÎ ¸®½ºÆ®´Â ´ÙÀ½°ú °°´Ù:

Some options which only apply to building cross compilers:

¸î¸î ¿É¼ÇµéÀº Å©·Î½º ÄÄÆÄÀÏ·¯¸¦ ¸¸µé¶§ ´ÜÁö »ç¿ëµÈ´Ù:

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 ¼³Ä¡Çϱâ ÆäÀÌÁö·Î µ¹¾Æ°¡±â