Fix dynamic linking on Mac. Static linking not working.

This commit is contained in:
David Brown 2017-02-15 18:34:00 +00:00
parent 44d5e0f325
commit 8063b0c595
3 changed files with 28 additions and 10 deletions

View file

@ -386,7 +386,7 @@ library:
@make -f src/tools/make/oberon.mk -s O$(MODEL)library MODEL=$(MODEL)
@printf '\nMaking lib$(ONAME)-O$(MODEL) .a and .so\n'
ar rcs "$(BUILDDIR)/$(MODEL)/lib$(ONAME)-O$(MODEL).a" $(BUILDDIR)/$(MODEL)/*.o
@cd $(BUILDDIR)/$(MODEL) && $(COMPILE) -shared -o lib$(ONAME)-O$(MODEL).so *.o
@cd $(BUILDDIR)/$(MODEL) && $(COMPILE) -shared -o lib$(ONAME)-O$(MODEL)$(DYNEXT) *.o