r14802 - gnucash/trunk/packaging/win32 - Include all of my known prerequisites to successfully compile gnucash:
Christian Stimming
cstim at cvs.gnucash.org
Wed Sep 6 05:19:57 EDT 2006
Author: cstim
Date: 2006-09-06 05:19:54 -0400 (Wed, 06 Sep 2006)
New Revision: 14802
Trac: http://svn.gnucash.org/trac/changeset/14802
Modified:
gnucash/trunk/packaging/win32/install.sh
Log:
Include all of my known prerequisites to successfully compile gnucash:
Fix g-wrap; Use -no-undefined properly;
Speed up build by excluding tests and don't relink; Try to set up paths in script correctly;
Speed up runtime module loading by excluding dependency_libs.
Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh 2006-09-05 19:41:02 UTC (rev 14801)
+++ gnucash/trunk/packaging/win32/install.sh 2006-09-06 09:19:54 UTC (rev 14802)
@@ -519,6 +519,11 @@
cat Makefile.bak | sed '/^std_libs/s,\\$, ../../libffi/libffi.la \\,' > Makefile
qpopd
make
+ qpushd guile/g-wrap
+ # Fix the filenames of the to be loaded DLLs
+ cp guile.scm guile.scm.bak
+ sed "s/slot-ref wrapset 'shlib-path) \"\\\\\"))/slot-ref wrapset 'shlib-path) \"-0\\\\\"))/" guile.scm.bak > guile.scm
+ qpopd
make install
qpopd
fi
@@ -680,11 +685,37 @@
--enable-debug \
--enable-schemas-install=no \
CPPFLAGS="${AUTOTOOLS_CPPFLAGS} ${REGEX_CPPFLAGS} -D_WIN32 -DLIBLTDL_DLL_IMPORT" \
- LDFLAGS="-no-undefined ${AUTOTOOLS_LDFLAGS} ${REGEX_LDFLAGS}" \
- PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" \
- PATH="${PATH}"
-# make
+ LDFLAGS="${AUTOTOOLS_LDFLAGS} ${REGEX_LDFLAGS}" \
+ PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+
+ # Add -no-undefined to LDFLAGS here manually because this must
+ # not be given during the ./configure tests
+ cp config.status config.status.bak ; sed 's/s, at LDFLAGS@,/s, at LDFLAGS@,-no-undefined /' config.status.bak > config.status
+ ./config.status
+ # Windows DLLs don't need relinking
+ cp ltmain.sh ltmain.sh.bak ; grep -v "need_relink=yes" ltmain.sh.bak > ltmain.sh
+ cp libtool libtool.bak ; grep -v "need_relink=yes" libtool.bak > libtool
+ # Exclude (for now) the test subdirectories from the build
+ # because executable linking is so painfully slow on mingw
+ perl -pi.bak -e's#^(SUBDIRS.* )test( .*)?$#\1\2#' `find src -name Makefile`
+
+ make
+
+ # Try to fix the paths in the "gnucash" script
+ qpushd src/bin
+ rm gnucash
+ make PATH_SEPARATOR=";" gnucash
+ # FIXME: Still not all paths are set up correctly.
qpopd
+
+ make install
+ qpopd
+
+ qpushd ${_GNUCASH_WFSDIR}/lib/gnucash
+ # Remove the dependency_libs line from the installed .la files
+ # because otherwise loading the modules literally takes hours.
+ for A in *.la; do grep -v dependency_libs $A > tmp ; mv tmp $A; done
+ qpopd
}
function finish() {
More information about the gnucash-changes
mailing list