Implemented --image-base support for Mac OS.

This commit is contained in:
Alexandre Julliard 2005-09-03 15:12:11 +00:00
parent 883d3c52d3
commit 9bca150c0f
1 changed files with 8 additions and 0 deletions

View File

@ -611,6 +611,14 @@ static void build(struct options* opts)
for ( j = 0 ; j < opts->linker_args->size ; j++ )
strarray_add(link_args, opts->linker_args->base[j]);
#ifdef __APPLE__
if (opts->image_base)
{
strarray_add(link_args, "-image_base");
strarray_add(link_args, opts->image_base);
}
#endif
for ( j = 0; j < lib_dirs->size; j++ )
strarray_add(link_args, strmake("-L%s", lib_dirs->base[j]));