From 1a01ab73994a70455b0e75f8b4a0249142888e3d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 6 Jul 2012 21:40:20 +0000 Subject: [PATCH] Do not use -Wl,-soname on MacOS X --- src/makefile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/makefile.c b/src/makefile.c index 9ed3dab..6da80b3 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -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)