diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2006-09-07 00:06:48 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-09-07 00:06:48 +0000 |
commit | b2565d710fd83a933a17485403fe655f35228bef (patch) | |
tree | a4a4dc1cb29748dd10e3362e258716d8aeff07c9 | |
parent | 4fadc2b4f1670fbd2a909e9ea03ab17ed92093e6 (diff) | |
download | ffmpeg-b2565d710fd83a933a17485403fe655f35228bef.tar.gz |
Introduce a mechanism to add object-specific linker flags.
patch by Gustavo Sverzut Barbieri, barbieri gmail com
Originally committed as revision 6182 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | vhook/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vhook/Makefile b/vhook/Makefile index 638f15a170..25fdcf315c 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -10,13 +10,13 @@ ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF) ifeq ($(HAVE_IMLIB2),yes) HOOKS += imlib2$(SLIBSUF) - LDFLAGS += -lImlib2 + LDFLAGS_imlib2$(SLIBSUF) = -lImlib2 endif ifeq ($(HAVE_FREETYPE2),yes) HOOKS += drawtext$(SLIBSUF) CFLAGS += `freetype-config --cflags` - LDFLAGS += `freetype-config --libs` + LDFLAGS_drawtext$(SLIBSUF) = `freetype-config --libs` endif SRCS := $(HOOKS:$(SLIBSUF)=.c) @@ -35,7 +35,7 @@ uninstall: -rmdir "$(shlibdir)/vhook/" %$(SLIBSUF): %.o - $(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $< + $(CC) $(LDFLAGS_$@) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $< clean: rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll |