The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cups / 0001-fix-static.patch
1 cups: fix static linking
2
3 Append -lz to the cups linking libs to fix a problem like this one:
4
5 ../cups/libcups.a(file.o): In function `cupsFileSeek':
6 /home/test/test/1/output/build/cups-1.3.11/cups/file.c:1444: undefined 
7 reference to `inflateEnd'
8 collect2: error: ld returned 1 exit status
9 make[2]: *** [ipp] Error 1
10 make[2]: *** Waiting for unfinished jobs....
11
12 This solution is the same used upstream in newer versions.
13
14 Fixes:
15    http://autobuild.buildroot.net/results/f3d/f3d4f67ce7ee1d54f5bd4c87dfddb7417db614e5/
16
17 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
18 --- cups-1.3.11/Makedefs.in.orig        2014-03-05 13:28:10.175437880 +0000
19 +++ cups-1.3.11/Makedefs.in     2014-03-05 13:28:35.398845162 +0000
20 @@ -132,7 +132,7 @@ LDFLAGS             =       -L../cups -L../filter @LDARCH
21  LEGACY_BACKENDS        =       @LEGACY_BACKENDS@
22  LIBCUPSORDER   =       @LIBCUPSORDER@
23  LIBCUPSIMAGEORDER =    @LIBCUPSIMAGEORDER@
24 -LINKCUPS       =       @LINKCUPS@ $(SSLLIBS)
25 +LINKCUPS       =       @LINKCUPS@ $(SSLLIBS) $(LIBZ)
26  LINKCUPSIMAGE  =       @LINKCUPSIMAGE@
27  LIBS           =       $(LINKCUPS) $(COMMONLIBS)
28  OPTIM          =       @OPTIM@