Commit b2565d71 authored by Gustavo Sverzut Barbieri's avatar Gustavo Sverzut Barbieri Committed by Diego Biurrun

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
parent 4fadc2b4
...@@ -10,13 +10,13 @@ ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF) ...@@ -10,13 +10,13 @@ ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
ifeq ($(HAVE_IMLIB2),yes) ifeq ($(HAVE_IMLIB2),yes)
HOOKS += imlib2$(SLIBSUF) HOOKS += imlib2$(SLIBSUF)
LDFLAGS += -lImlib2 LDFLAGS_imlib2$(SLIBSUF) = -lImlib2
endif endif
ifeq ($(HAVE_FREETYPE2),yes) ifeq ($(HAVE_FREETYPE2),yes)
HOOKS += drawtext$(SLIBSUF) HOOKS += drawtext$(SLIBSUF)
CFLAGS += `freetype-config --cflags` CFLAGS += `freetype-config --cflags`
LDFLAGS += `freetype-config --libs` LDFLAGS_drawtext$(SLIBSUF) = `freetype-config --libs`
endif endif
SRCS := $(HOOKS:$(SLIBSUF)=.c) SRCS := $(HOOKS:$(SLIBSUF)=.c)
...@@ -35,7 +35,7 @@ uninstall: ...@@ -35,7 +35,7 @@ uninstall:
-rmdir "$(shlibdir)/vhook/" -rmdir "$(shlibdir)/vhook/"
%$(SLIBSUF): %.o %$(SLIBSUF): %.o
$(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $< $(CC) $(LDFLAGS_$@) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $<
clean: clean:
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll 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