diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-01-12 00:00:00 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-01-12 00:00:00 +0000 |
commit | fb3d46da6960d56e0a757734b4ea959f4af1063c (patch) | |
tree | 30f0a1fbfe5c0aef8cdf49880a693d085e4ea24f /vhook | |
parent | 14f0c8e28af6f34411d86fa3f965e5be870024e6 (diff) | |
download | ffmpeg-fb3d46da6960d56e0a757734b4ea959f4af1063c.tar.gz |
Move Darwin shared library build peculiarities to configure.
Originally committed as revision 4838 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook')
-rw-r--r-- | vhook/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vhook/Makefile b/vhook/Makefile index 945b4bd062..f473a6e8d3 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -4,8 +4,9 @@ VPATH=$(SRC_PATH)/vhook CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H +#FIXME: This needs to be in configure/config.mak ifeq ($(CONFIG_DARWIN),yes) - SHFLAGS += -flat_namespace -undefined suppress + SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(libdir)/vhook/$@ endif HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF) @@ -36,11 +37,7 @@ drawtext$(SLIBSUF): drawtext.o $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs` %$(SLIBSUF): %.o -ifeq ($(CONFIG_DARWIN),yes) - $(CC) $(LDFLAGS) $(SHFLAGS) -Wl,-install_name,$(libdir)/vhook/$@ -g -o $@ $< -else $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -endif clean: rm -f *.o *.d .depend *$(SLIBSUF) *~ |