1 Description: Tweak guile-config to link with static libguile.a
2 This patch allows LilyPond to be built with an embedded static library
3 of guile-1.8 for Debian 9 "stretch" due to the removal of guile-1.8
4 from Debian and the incompatibility between the current LilyPond and
6 Author: Anthony Fok <foka@debian.org>
8 Bug-Debian: https://bugs.debian.org/746005
10 Last-Update: 2017-01-23
12 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
13 --- a/guile18/guile-config/guile-config.in
14 +++ b/guile18/guile-config/guile-config.in
16 (string=? libdir "/usr/lib/"))
18 (string-append "-L" (get-build-info 'libdir)))
19 + (string-append "-L" (getcwd) "/guile18/libguile/.libs")
21 (string-join other-flags)
24 (if (not (string=? (get-build-info 'includedir) "/usr/include"))
25 (string-append "-I" (get-build-info 'includedir) " ")
28 + (string-append "-I" (getcwd) "/guile18" " ")
29 (get-build-info 'CFLAGS)
32 --- a/guile18/guile-config/Makefile.am
33 +++ b/guile18/guile-config/Makefile.am
35 guile-config: guile-config.in ${top_builddir}/libguile/libpath.h
36 rm -f guile-config.tmp
37 sed < ${srcdir}/guile-config.in > guile-config.tmp \
38 - -e 's|@-bindir-@|${bindir}|' \
39 + -e 's|@-bindir-@|${abs_top_builddir}/libguile|' \
40 -e s:@-GUILE_VERSION-@:${GUILE_VERSION}:
41 chmod +x guile-config.tmp
42 mv guile-config.tmp guile-config