Do not use -Wl,-soname on MacOS X

This commit is contained in:
Pierre Pronchery 2012-07-06 21:40:20 +00:00
parent 05960c9e98
commit 1a01ab7399

View File

@ -1065,6 +1065,8 @@ static int _target_library(Configure * configure, FILE * fp,
fprintf(fp, " %s", p); fprintf(fp, " %s", p);
fputc('\n', fp); fputc('\n', fp);
fprintf(fp, "%s%s%s", "\t$(CCSHARED) -o ", soname, ".0"); fprintf(fp, "%s%s%s", "\t$(CCSHARED) -o ", soname, ".0");
/* soname is not available on MacOS X */
if(configure->os != HO_MACOSX)
fprintf(fp, "%s%s", " -Wl,-soname,", soname); fprintf(fp, "%s%s", " -Wl,-soname,", soname);
fprintf(fp, "%s%s%s%s%s", " $(", target, "_OBJS) $(", target, fprintf(fp, "%s%s%s%s%s", " $(", target, "_OBJS) $(", target,
"_LDFLAGS)"); "_LDFLAGS)");