mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Build Guile and GnuCash by `make LDFLAGS="$SOME_FLAGS -no-undefined"'
and avoid patching Makefiles and rerunning config.status. Tested on 1 system so far. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14833 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
d2b43a4513
commit
84912e8343
@ -300,15 +300,11 @@ function inst_guile() {
|
|||||||
cp config.status config.status.bak
|
cp config.status config.status.bak
|
||||||
cat config.status.bak | sed 's# fileblocks[$.A-Za-z]*,#,#' > config.status
|
cat config.status.bak | sed 's# fileblocks[$.A-Za-z]*,#,#' > config.status
|
||||||
./config.status
|
./config.status
|
||||||
for file in {srfi,libguile-ltdl,libguile}/Makefile; do
|
|
||||||
cp $file $file.bak
|
|
||||||
cat $file.bak | sed '/^lib.*LDFLAGS =/s,\(\\*\)$, -no-undefined \1,' > $file
|
|
||||||
done
|
|
||||||
qpushd guile-config
|
qpushd guile-config
|
||||||
cp Makefile Makefile.bak
|
cp Makefile Makefile.bak
|
||||||
cat Makefile.bak | sed '/-bindir-/s,:,^,g' > Makefile
|
cat Makefile.bak | sed '/-bindir-/s,:,^,g' > Makefile
|
||||||
qpopd
|
qpopd
|
||||||
make
|
make LDFLAGS="-lwsock32 ${READLINE_LDFLAGS} ${REGEX_LDFLAGS} -lregex -no-undefined"
|
||||||
make install
|
make install
|
||||||
qpopd
|
qpopd
|
||||||
qpushd $GUILE_DIR/bin
|
qpushd $GUILE_DIR/bin
|
||||||
@ -718,10 +714,6 @@ function inst_gnucash() {
|
|||||||
LDFLAGS="${AUTOTOOLS_LDFLAGS} ${REGEX_LDFLAGS} ${GNOME_LDFLAGS}" \
|
LDFLAGS="${AUTOTOOLS_LDFLAGS} ${REGEX_LDFLAGS} ${GNOME_LDFLAGS}" \
|
||||||
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
|
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,@LDFLAGS@,.*\),/\1 -no-undefined,/' config.status.bak > config.status
|
|
||||||
./config.status
|
|
||||||
# Windows DLLs don't need relinking
|
# Windows DLLs don't need relinking
|
||||||
cp ltmain.sh ltmain.sh.bak ; grep -v "need_relink=yes" ltmain.sh.bak > ltmain.sh
|
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
|
cp libtool libtool.bak ; grep -v "need_relink=yes" libtool.bak > libtool
|
||||||
@ -729,7 +721,7 @@ function inst_gnucash() {
|
|||||||
# because executable linking is so painfully slow on mingw
|
# because executable linking is so painfully slow on mingw
|
||||||
perl -pi.bak -e's#^(SUBDIRS.* )test( .*)?$#\1\2#' `find src -name Makefile`
|
perl -pi.bak -e's#^(SUBDIRS.* )test( .*)?$#\1\2#' `find src -name Makefile`
|
||||||
|
|
||||||
make
|
make LDFLAGS="${AUTOTOOLS_LDFLAGS} ${REGEX_LDFLAGS} ${GNOME_LDFLAGS} -no-undefined"
|
||||||
|
|
||||||
# Try to fix the paths in the "gnucash" script
|
# Try to fix the paths in the "gnucash" script
|
||||||
qpushd src/bin
|
qpushd src/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user