Browse code

library.mak: only run asm strip if ASMSTRIP flags are set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e975c147e18010a9f96f56b21d0cd0f026eaae0e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/11/29 05:52:46
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@ $(SUBDIR)%-test.i: $(SUBDIR)%.c
25 25
 $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
26 26
 	$(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
27 27
 	$(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
28
-	-$(STRIP) $(ASMSTRIPFLAGS) $@
28
+	-$(if $(ASMSTRIPFLAGS), $(STRIP) $(ASMSTRIPFLAGS) $@)
29 29
 
30 30
 LIBOBJS := $(OBJS) $(SUBDIR)%.h.o $(TESTOBJS)
31 31
 $(LIBOBJS) $(LIBOBJS:.o=.s) $(LIBOBJS:.o=.i):   CPPFLAGS += -DHAVE_AV_CONFIG_H