contrib/transcode/subtitleripper-0.3.4-respect-ldflags.patch

29 lines
762 B
Diff
Raw Normal View History

2014-09-12 13:15:36 +02:00
Index: subtitleripper/Makefile
===================================================================
--- subtitleripper.orig/Makefile
+++ subtitleripper/Makefile
@@ -70,19 +70,19 @@ vobsub2pgm.o: vobsub2pgm.c vobsub.h spud
# Target
subtitle2pgm: subtitle2pgm.o spudec.o
@echo "Linking $@"
- @$(CC) $^ -o $@ $(LIBS)
+ @$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
subtitle2vobsub: subtitle2vobsub.o vobsub.o
@echo "Linking $@"
- @$(CC) $^ -o $@ $(LIBS)
+ @$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
srttool: srttool.o
@echo "Linking $@"
- @$(CC) -g $^ -o $@ $(LIBS)
+ @$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
vobsub2pgm: vobsub2pgm.o vobsub.o spudec.o
@echo "Linking $@"
- @$(CC) -g $^ -o $@ $(LIBS)
+ @$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
.PHONY: clean dist rpm
clean: