From cdfdfe7c04ad0788d8e78e8710acc7fdd1cba704 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Wed, 8 Jun 2011 16:10:16 +0000 Subject: [PATCH] Tighten up win32 installer size - Use shared libs only --- Makefile.am | 4 ++++ gen-win32.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.43.2