Commit f3bea5b7 authored by diego's avatar diego

Introduce a mechanism to add object-specific linker flags.

patch by Gustavo Sverzut Barbieri, barbieri gmail com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6182 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d0291c80
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment