Add comments and a test for delay-init libraries on macOS. I originally
added the support in 954d00e87c a month
ago, but without these additional clarifications.
rdar://126885033
12 lines
246 B
Makefile
12 lines
246 B
Makefile
C_SOURCES := main.c
|
|
LD_EXTRAS := -L. -Wl,-delay_library,libfoo.dylib
|
|
|
|
.PHONY: build-libfoo
|
|
all: build-libfoo a.out
|
|
|
|
include Makefile.rules
|
|
|
|
build-libfoo: foo.c
|
|
$(MAKE) -f $(MAKEFILE_RULES) \
|
|
DYLIB_C_SOURCES=foo.c DYLIB_NAME=foo DYLIB_ONLY=YES
|