Let the flags to ar(1) be overidden
This commit is contained in:
parent
2e687c74ce
commit
66adfacfb9
@ -794,6 +794,7 @@ static void _variables_library_static(Configure * configure, FILE * fp)
|
|||||||
_makefile_output_variable(fp, "AR", configure->programs.ar);
|
_makefile_output_variable(fp, "AR", configure->programs.ar);
|
||||||
else
|
else
|
||||||
_makefile_output_variable(fp, "AR", p);
|
_makefile_output_variable(fp, "AR", p);
|
||||||
|
_makefile_output_variable(fp, "ARFLAGS", "-rc");
|
||||||
if((p = config_get(configure->config, NULL, "ranlib")) == NULL)
|
if((p = config_get(configure->config, NULL, "ranlib")) == NULL)
|
||||||
_makefile_output_variable(fp, "RANLIB",
|
_makefile_output_variable(fp, "RANLIB",
|
||||||
configure->programs.ranlib);
|
configure->programs.ranlib);
|
||||||
@ -1333,7 +1334,7 @@ static int _target_library_static(Configure * configure, FILE * fp,
|
|||||||
_makefile_print(fp, "%c", '\n');
|
_makefile_print(fp, "%c", '\n');
|
||||||
/* build the static library */
|
/* build the static library */
|
||||||
_makefile_print(fp, "%s%s%s%s%s",
|
_makefile_print(fp, "%s%s%s%s%s",
|
||||||
"\t$(AR) -rc $(OBJDIR)", target, ".a $(",
|
"\t$(AR) $(ARFLAGS) $(OBJDIR)", target, ".a $(",
|
||||||
target, "_OBJS)");
|
target, "_OBJS)");
|
||||||
len = strlen(target) + 3;
|
len = strlen(target) + 3;
|
||||||
if((q = malloc(len)) == NULL)
|
if((q = malloc(len)) == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user