From: Andy Spencer Date: Wed, 8 Jun 2011 16:10:16 +0000 (+0000) Subject: Tighten up win32 installer size X-Git-Tag: v0.5~9 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=cdfdfe7c04ad0788d8e78e8710acc7fdd1cba704 Tighten up win32 installer size - Use shared libs only --- diff --git a/Makefile.am b/Makefile.am index 5b26283..af95b2b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,6 +16,10 @@ build: all make -C ../aweather-win32 install; \ make -C ../grits-win32 install; \ make -C ../rsl-win32 install; + find build -name '*.a' -delete + find build -name '*.la' -delete + rm -rf build/share/rsl/colors + rm -rf build/include touch $@ installers: $(PACKAGE)-$(VERSION).exe $(PACKAGE)-$(VERSION)-gtk.exe diff --git a/gen-win32.sh b/gen-win32.sh index d2c7eb1..f9f3b59 100755 --- a/gen-win32.sh +++ b/gen-win32.sh @@ -6,4 +6,7 @@ export PKG_CONFIG_PATH="$GRITS" export LIBS="-L$GRITS" export CPPFLAGS="-I$GRITS" export CFLAGS="-g -Werror -Wno-unused -O3" -./autogen.sh --host=i686-pc-mingw32 +./autogen.sh \ + --enable-shared \ + --disable-static \ + --host=i686-pc-mingw32