Index: parrot/compilers/imcc/main.c =================================================================== --- parrot/compilers/imcc/main.c (revision 37327) +++ parrot/compilers/imcc/main.c (working copy) @@ -217,6 +217,7 @@ " -V --version\n" " -I add path to include search\n" " -L add path to library search\n" + " -S add path to system library search\n" " \n" " -R --runcore CORE\n" " --bounds-checks|--slow-core\n" @@ -300,6 +301,7 @@ { 'L', 'L', OPTION_required_FLAG, { NULL } }, { 'O', 'O', OPTION_optional_FLAG, { "--optimize" } }, { 'R', 'R', OPTION_required_FLAG, { "--runcore" } }, + { 'S', 'S', OPTION_required_FLAG, { NULL } }, { 'V', 'V', (OPTION_flags)0, { "--version" } }, { '\0', OPT_DESTROY_FLAG, (OPTION_flags)0, { "--leak-test", "--destroy-at-end" } }, @@ -539,6 +541,10 @@ Parrot_add_library_path(interp, opt.opt_arg, PARROT_LIB_PATH_LIBRARY); break; + case 'S': + Parrot_add_library_path(interp, opt.opt_arg, + PARROT_LIB_PATH_DYNEXT); + break; default: Parrot_ex_throw_from_c_args(interp, NULL, 1, "main: Invalid flag '%s' used.\n\nhelp: parrot -h\n",