diff options
Diffstat (limited to 'vhook/Makefile')
-rw-r--r-- | vhook/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vhook/Makefile b/vhook/Makefile index 5f198058f0..296127daec 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -2,6 +2,11 @@ include ../config.mak CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I../libav -I../libavcodec -DHAVE_AV_CONFIG_H +ifeq ($(CONFIG_DARWIN),yes) +LDFLAGS+=-bundle -flat_namespace -undefined suppress +else +LDFLAGS+=-shared +endif HOOKS=null.so fish.so ifeq ($(HAVE_IMLIB2),yes) @@ -14,11 +19,11 @@ install: install -s -m 755 $(HOOKS) $(INSTDIR) imlib2.so: imlib2.o - $(CC) -g -o $@ -shared $< -lImlib2 + $(CC) -g -o $@ $(LDFLAGS) $< -lImlib2 rm $< %.so: %.o - $(CC) -g -o $@ -shared $< + $(CC) -g -o $@ $(LDFLAGS) $< %.html: %.texi texi2html -monolithic -number $< |