use libtool to create libraries on macOS

This commit is contained in:
Adam Feuer 2019-04-10 09:42:10 -07:00
parent c22323e3ce
commit 5a1629529c
2 changed files with 5 additions and 1 deletions

View file

@ -184,7 +184,8 @@ runtime.o : runtime.c $(HEADERS)
$< -o $@ $< -o $@
libcyclone.a : runtime.o gc.o dispatch.o mstreams.o hashset.o libcyclone.a : runtime.o gc.o dispatch.o mstreams.o hashset.o
$(AR) rcs $@ $^ $(CREATE_LIBRARY_COMMAND) $(CREATE_LIBRARY_FLAGS) $@ $&
$(RANLIB_COMMAND)
# Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html # Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html
# Note compiler will have to link to this, eg: # Note compiler will have to link to this, eg:
#Linking against static library #Linking against static library

View file

@ -4,6 +4,8 @@
# #
# Configuration options for the makefile # Configuration options for the makefile
& = $(filter-out %.h %.d,$^)
CYC_PROFILING ?= CYC_PROFILING ?=
#CYC_PROFILING ?= -g -pg #CYC_PROFILING ?= -g -pg
@ -105,3 +107,4 @@ else
PLATFORM=unix PLATFORM=unix
endif endif
endif endif