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