]> git.pld-linux.org Git - packages/freetype1.git/blob - freetype1-link.patch
- ugly hack to make it build with recent autotools
[packages/freetype1.git] / freetype1-link.patch
1 --- freetype-1.3.1/lib/arch/unix/Makefile.in.orig       2009-10-08 16:52:49.474105192 +0200
2 +++ freetype-1.3.1/lib/arch/unix/Makefile.in    2009-10-08 16:57:56.747409015 +0200
3 @@ -126,6 +126,7 @@
4  # C flags
5  CFLAGS = @CFLAGS@ @XX_CFLAGS@
6  CPPFLAGS = @CPPFLAGS@
7 +LDFLAGS = @LDFLAGS@
8  FT_CFLAGS = $(CFLAGS) $(INCLUDES)
9  
10  # linker flags
11 @@ -195,7 +196,7 @@
12                                          $(SRC_S)
13  
14  libttf.la: $(LIB_FILES)
15 -       $(LIBTOOL) --mode=link $(CC) -o libttf.la $(LIB_FILES) \
16 +       $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libttf.la $(LIB_FILES) \
17                                 -rpath $(libdir) \
18                                 -version-info $(version_info) $(FT_LIBS)
19  
20 --- freetype-1.3.1/test/arch/unix/Makefile.in.orig      2009-10-08 16:52:49.472228742 +0200
21 +++ freetype-1.3.1/test/arch/unix/Makefile.in   2009-10-08 17:01:06.184056330 +0200
22 @@ -30,9 +30,10 @@
23  
24  CFLAGS = @CFLAGS@ @X_CFLAGS@ @XX_CFLAGS@
25  CPPFLAGS = @CPPFLAGS@
26 +LDFLAGS = @LDFLAGS@
27  FT_CFLAGS = $(INCDIRS) $(CFLAGS) $(CPPFLAGS) -DX11 -DLOCALEDIR='"@LOCALEDIR@"'
28  
29 -FT_LIBS = @X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@ @LIBS@
30 +FT_LIBS = @X_LIBS@ @X_EXTRA_LIBS@ @LIBS@
31  
32  SRC = $(srcdir)/arabic.c           \
33        $(srcdir)/common.c           \
34 @@ -62,7 +63,7 @@
35  
36  # variables used to compile either with libtool or not
37  #
38 -PROCESS = $(LIBTOOL) --mode=link  $(CC) $(FT_CFLAGS)
39 +PROCESS = $(LIBTOOL) --mode=link  $(CC) $(LDFLAGS) $(FT_CFLAGS)
40  #PROCESS = $(CC) $(FT_CFLAGS)
41  
42  LIBTTF = $(top_builddir)/lib/libttf.la
43 --- freetype-1.3.1/configure.in.orig    2009-10-08 16:52:50.204105629 +0200
44 +++ freetype-1.3.1/configure.in 2009-10-08 17:00:45.140723630 +0200
45 @@ -41,6 +41,7 @@ else
46    esac
47  fi
48  AC_SUBST(XX_CFLAGS)
49 +AC_SUBST(LDFLAGS)
50  
51  dnl at least Digital UNIX 4.0d needs this due to a strange make program
52  
This page took 0.062151 seconds and 3 git commands to generate.