diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-05-31 23:07:50 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-05-31 23:07:50 +0000 |
commit | e68b7116f9d883b7a4f397f3ac1f5f9fb7d8aa9e (patch) | |
tree | c7e34ea0296a89180c87ac1c764df677d1d77288 /extra/gcc-uClibc | |
parent | 63fbd32beb733cc0e959baedbc6fcacb7a225a69 (diff) |
Added cmdline options --uclibc-use-build-dir and --uclibc-use-rpath so that
those behaviors can be invoked from the command line.
Diffstat (limited to 'extra/gcc-uClibc')
-rw-r--r-- | extra/gcc-uClibc/gcc-uClibc.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 2cbf7f3d4..b5a392086 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -59,6 +59,9 @@ * use default dynamic linker or the envirnment-specified dynamic linker * is disabled in that case. * + * Added options --uclibc-use-build-dir and --uclibc-use-rpath so that those + * behaviors can be invoked from the command line. + * */ /* @@ -129,8 +132,7 @@ int main(int argc, char **argv) if ((strstr(argv[0],"build") != 0) || (strstr(ep,"build") != 0)) { use_build_dir = 1; - -} + } if ((strstr(argv[0],"rpath") != 0) || (strstr(ep,"rpath") != 0)) { use_rpath = 1; @@ -199,7 +201,13 @@ int main(int argc, char **argv) i = 0; gcc_argv[i++] = GCC_BIN; for ( j = 1 ; j < argc ; j++ ) { - gcc_argv[i++] = argv[j]; + if (strcmp("--uclibc-use-build-dir",argv[j]) == 0) { + use_build_dir = 1; + } else if (strcmp("--uclibc-use-rpath",argv[j]) == 0) { + use_rpath = 1; + } else { + gcc_argv[i++] = argv[j]; + } } if (use_stdinc) { gcc_argv[i++] = nostdinc; |