| Red Hat Documentation |
|
Compilation in a separate directory If you wish to build the object files and executables in a directory other than the one containing the source files, use the following. 1.
2.
3.
mkdir gcc-sun3 cd gcc-sun3On systems that do not support symbolic links, this directory must be on the same file system as the source code directory. 4.
../gcc/configure...This also tells configure where to find the compiler sources; configure takes the directory from the filename that was used to invoke it. But if you want to be sure, you can specify the source directory with the srcdir option, like the following example demonstrates. ../gcc/configuresrcdir= ../gcc other optionsThe directory you specify with --srcdir need not be the same as the one in which configure is found. Now, you can run make in that directory. You need not repeat the configuration steps shown previously when ordinary source files change. You must, however, run configure again when the configuration files change, if your system does not support symbolic links. |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |