Do not link to libraries before being built
This commit is contained in:
parent
08a54f65c4
commit
bbff942d35
@ -1260,22 +1260,23 @@ static int _target_library(Configure * configure, FILE * fp,
|
||||
_makefile_print(fp, "%c", '\n');
|
||||
if(configure->os == HO_MACOSX)
|
||||
{
|
||||
_makefile_print(fp, "%s%s%s%s%s", "\n$(OBJDIR)", target, ".0",
|
||||
soext, ":\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s%s", "\n$(OBJDIR)", target,
|
||||
".0", soext, ": $(OBJDIR)", soname, "\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s%s", "\t$(LN) -s -- ", soname,
|
||||
" $(OBJDIR)", target, ".0", soext, "\n");
|
||||
_makefile_print(fp, "%s%s%s%s", "\n$(OBJDIR)", target, soext,
|
||||
":\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s", "\n$(OBJDIR)", target,
|
||||
soext, ": $(OBJDIR)", soname, "\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s", "\t$(LN) -s -- ", soname,
|
||||
" $(OBJDIR)", target, soext, "\n");
|
||||
}
|
||||
else if(configure->os != HO_WIN32)
|
||||
{
|
||||
_makefile_print(fp, "%s%s%s", "\n$(OBJDIR)", soname, ":\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s", "\n$(OBJDIR)", soname,
|
||||
": $(OBJDIR)", soname, ".0\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s", "\t$(LN) -s -- ", soname,
|
||||
".0 $(OBJDIR)", soname, "\n");
|
||||
_makefile_print(fp, "%s%s%s%s", "\n$(OBJDIR)", target, soext,
|
||||
":\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s", "\n$(OBJDIR)", target,
|
||||
soext, ": $(OBJDIR)", soname, ".0\n");
|
||||
_makefile_print(fp, "%s%s%s%s%s%s", "\t$(LN) -s -- ", soname,
|
||||
".0 $(OBJDIR)", target, soext, "\n");
|
||||
}
|
||||
|
@ -26,10 +26,10 @@ $(OBJDIR)libtest.a: $(libtest_OBJS)
|
||||
$(OBJDIR)libtest.0.0.dylib: $(libtest_OBJS)
|
||||
$(CCSHARED) -o $(OBJDIR)libtest.0.0.dylib -install_name $(LIBDIR)/libtest.0.dylib $(libtest_OBJS) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.0.dylib:
|
||||
$(OBJDIR)libtest.0.dylib: $(OBJDIR)libtest.0.0.dylib
|
||||
$(LN) -s -- libtest.0.0.dylib $(OBJDIR)libtest.0.dylib
|
||||
|
||||
$(OBJDIR)libtest.dylib:
|
||||
$(OBJDIR)libtest.dylib: $(OBJDIR)libtest.0.0.dylib
|
||||
$(LN) -s -- libtest.0.0.dylib $(OBJDIR)libtest.dylib
|
||||
|
||||
$(OBJDIR)test.o: test.c
|
||||
|
@ -26,10 +26,10 @@ $(OBJDIR)libtest.a: $(libtest_OBJS)
|
||||
$(OBJDIR)libtest.so.0.0: $(libtest_OBJS)
|
||||
$(CCSHARED) -o $(OBJDIR)libtest.so.0.0 -Wl,-soname,libtest.so.0 $(libtest_OBJS) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.so.0:
|
||||
$(OBJDIR)libtest.so.0: $(OBJDIR)libtest.so.0.0
|
||||
$(LN) -s -- libtest.so.0.0 $(OBJDIR)libtest.so.0
|
||||
|
||||
$(OBJDIR)libtest.so:
|
||||
$(OBJDIR)libtest.so: $(OBJDIR)libtest.so.0.0
|
||||
$(LN) -s -- libtest.so.0.0 $(OBJDIR)libtest.so
|
||||
|
||||
$(OBJDIR)test.o: test.c
|
||||
|
@ -26,10 +26,10 @@ $(OBJDIR)libtest.a: $(libtest_OBJS)
|
||||
$(OBJDIR)libtest.so.0.0: $(libtest_OBJS)
|
||||
$(CCSHARED) -o $(OBJDIR)libtest.so.0.0 -Wl,-soname,libtest.so.0 $(libtest_OBJS) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.so.0:
|
||||
$(OBJDIR)libtest.so.0: $(OBJDIR)libtest.so.0.0
|
||||
$(LN) -s -- libtest.so.0.0 $(OBJDIR)libtest.so.0
|
||||
|
||||
$(OBJDIR)libtest.so:
|
||||
$(OBJDIR)libtest.so: $(OBJDIR)libtest.so.0.0
|
||||
$(LN) -s -- libtest.so.0.0 $(OBJDIR)libtest.so
|
||||
|
||||
$(OBJDIR)test.o: test.c
|
||||
|
Loading…
Reference in New Issue
Block a user