library.mak: only run asm strip if ASMSTRIP flags are set
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Nov 2013 20:52:46 +0000 (21:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Nov 2013 20:52:46 +0000 (21:52 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
library.mak

index 36c883d..737f5bb 100644 (file)
@@ -25,7 +25,7 @@ $(SUBDIR)%-test.i: $(SUBDIR)%.c
 $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
        $(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
        $(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
-       -$(STRIP) $(ASMSTRIPFLAGS) $@
+       -$(if $(ASMSTRIPFLAGS), $(STRIP) $(ASMSTRIPFLAGS) $@)
 
 LIBOBJS := $(OBJS) $(SUBDIR)%.h.o $(TESTOBJS)
 $(LIBOBJS) $(LIBOBJS:.o=.s) $(LIBOBJS:.o=.i):   CPPFLAGS += -DHAVE_AV_CONFIG_H