$(MAKE) -C libavcodec install
$(MAKE) -C libavformat install
install -d "$(bindir)"
- install -c -s -m 755 $(PROG) "$(bindir)"
+ install -c $(INSTALLSTRIP) -m 755 $(PROG) "$(bindir)"
# create the window installer
wininstaller: all install
echo " --disable-risky disables patent encumbered codecs"
echo " --enable-small optimize for size instead of speed"
echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers"
+echo " --disable-strip disable stripping of executables and shared libraries"
echo ""
echo "NOTE: The object files are build at the place where configure is launched"
exit 1
lshared="no"
optimize="yes"
debug="yes"
+dostrip="yes"
extralibs="-lm"
simpleidct="yes"
bigendian="no"
;;
--enable-memalign-hack) memalignhack="yes"
;;
+ --disable-strip) dostrip="no"
+ ;;
esac
done
echo "dts support $dts"
echo "pp support $pp"
echo "debug symbols $debug"
+echo "strip symbols $dostrip"
echo "optimize $optimize"
echo "shared pp $shared_pp"
echo "Video hooking $vhook"
echo "CC=$cc" >> config.mak
echo "AR=$ar" >> config.mak
echo "RANLIB=$ranlib" >> config.mak
+if test "$dostrip" = "yes" ; then
echo "STRIP=$strip" >> config.mak
+echo "INSTALLSTRIP=-s" >> config.mak
+else
+echo "STRIP=echo ignoring strip" >> config.mak
+echo "INSTALLSTRIP=" >> config.mak
+fi
# SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic. Used when building
# shared modules on OS/X (vhook/Makefile).
ifeq ($(BUILD_SHARED),yes)
install: all install-headers
ifeq ($(CONFIG_WIN32),yes)
- install -s -m 755 $(SLIB) "$(prefix)"
+ install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
else
install -d $(prefix)/lib
- install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
+ install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
ldconfig || true
endif
ifeq ($(BUILD_SHARED),yes)
install: all install-headers
ifeq ($(CONFIG_WIN32),yes)
- install -s -m 755 $(SLIB) "$(prefix)"
+ install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
else
install -d $(prefix)/lib
- install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
+ install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so
ldconfig || true
endif