Commit a5e4978f authored by Geoffroy Couprie's avatar Geoffroy Couprie

Strip all debug symbols from binaries (and remove useless case for mozilla and activex)

(cherry picked from commit ba501462)
Signed-off-by: default avatarGeoffroy Couprie <geal@videolan.org>
parent 92248f58
...@@ -892,30 +892,17 @@ package-win-common-strip: package-win32-base-debug ...@@ -892,30 +892,17 @@ package-win-common-strip: package-win32-base-debug
for i in "" vlc-$(VERSION)/*$(LIBEXT) ; \ for i in "" vlc-$(VERSION)/*$(LIBEXT) ; \
do if test -n "$$i" ; then \ do if test -n "$$i" ; then \
$(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \ $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
$(OBJCOPY) --strip-debug "$$i" ; \ $(OBJCOPY) --strip-all "$$i" ; \
$(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \ $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
mv "$$i.dbg" "$(win32_debugdir)"; \ mv "$$i.dbg" "$(win32_debugdir)"; \
fi; done fi; done
if BUILD_MOZILLA
$(OBJCOPY) --only-keep-debug "$(npvlc)" "$(npvlc).dbg"
$(OBJCOPY) --strip-debug "$(npvlc)"
$(OBJCOPY) --add-gnu-debuglink="$(npvlc).dbg" "$(npvlc)"
mv "$(npvlc).dbg" "$(win32_debugdir)"
endif
if BUILD_ACTIVEX
$(OBJCOPY) --only-keep-debug "$(axvlc)" "$(axvlc).dbg"
$(OBJCOPY) --strip-debug "$(axvlc)"
$(OBJCOPY) --add-gnu-debuglink="$(axvlc).dbg" "$(axvlc)"
mv "$(axvlc).dbg" "$(win32_debugdir)"
endif
#strip all plugins dll #strip all plugins dll
package-win32-base: package-win-common-strip package-win32-base: package-win-common-strip
for i in "" $(win32_destdir)/plugins/*$(LIBEXT) ; \ for i in "" $(win32_destdir)/plugins/*$(LIBEXT) ; \
do if test -n "$$i" ; then \ do if test -n "$$i" ; then \
$(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \ $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
$(OBJCOPY) --strip-debug "$$i" ; \ $(OBJCOPY) --strip-all "$$i" ; \
$(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \ $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
mv "$$i.dbg" "$(win32_debugdir)"; \ mv "$$i.dbg" "$(win32_debugdir)"; \
fi ; done fi ; done
......
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