diff mbox

[1/2] cups: fix static linking

Message ID 1394033401-23331-1-git-send-email-Vincent.Riera@imgtec.com
State Accepted
Commit 2bba6998233d18add174a621bd35747a769bcd87
Headers show

Commit Message

Vicente Olivert Riera March 5, 2014, 3:30 p.m. UTC
Append -lz to the cups linking libs to fix a problem like this one:

../cups/libcups.a(file.o): In function `cupsFileSeek':
/home/test/test/1/output/build/cups-1.3.11/cups/file.c:1444: undefined
reference to `inflateEnd'
collect2: error: ld returned 1 exit status
make[2]: *** [ipp] Error 1
make[2]: *** Waiting for unfinished jobs....

This solution is the same used upstream in newer versions.

Fixes:
   http://autobuild.buildroot.net/results/f3d/f3d4f67ce7ee1d54f5bd4c87dfddb7417db614e5/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/cups/cups-0001-fix-static.patch |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 package/cups/cups-0001-fix-static.patch

Comments

Peter Korsgaard March 26, 2014, 11:45 p.m. UTC | #1
>>>>> "Vicente" == Vicente Olivert Riera <Vincent.Riera@imgtec.com> writes:

 > Append -lz to the cups linking libs to fix a problem like this one:
 > ../cups/libcups.a(file.o): In function `cupsFileSeek':
 > /home/test/test/1/output/build/cups-1.3.11/cups/file.c:1444: undefined
 > reference to `inflateEnd'
 > collect2: error: ld returned 1 exit status
 > make[2]: *** [ipp] Error 1
 > make[2]: *** Waiting for unfinished jobs....

 > This solution is the same used upstream in newer versions.

 > Fixes:
 >    http://autobuild.buildroot.net/results/f3d/f3d4f67ce7ee1d54f5bd4c87dfddb7417db614e5/

 > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

Committed both, thanks.
diff mbox

Patch

diff --git a/package/cups/cups-0001-fix-static.patch b/package/cups/cups-0001-fix-static.patch
new file mode 100644
index 0000000..4c9d0d4
--- /dev/null
+++ b/package/cups/cups-0001-fix-static.patch
@@ -0,0 +1,28 @@ 
+cups: fix static linking
+
+Append -lz to the cups linking libs to fix a problem like this one:
+
+../cups/libcups.a(file.o): In function `cupsFileSeek':
+/home/test/test/1/output/build/cups-1.3.11/cups/file.c:1444: undefined 
+reference to `inflateEnd'
+collect2: error: ld returned 1 exit status
+make[2]: *** [ipp] Error 1
+make[2]: *** Waiting for unfinished jobs....
+
+This solution is the same used upstream in newer versions.
+
+Fixes:
+   http://autobuild.buildroot.net/results/f3d/f3d4f67ce7ee1d54f5bd4c87dfddb7417db614e5/
+
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+--- cups-1.3.11/Makedefs.in.orig	2014-03-05 13:28:10.175437880 +0000
++++ cups-1.3.11/Makedefs.in	2014-03-05 13:28:35.398845162 +0000
+@@ -132,7 +132,7 @@ LDFLAGS		=	-L../cups -L../filter @LDARCH
+ LEGACY_BACKENDS	=	@LEGACY_BACKENDS@
+ LIBCUPSORDER	=	@LIBCUPSORDER@
+ LIBCUPSIMAGEORDER =	@LIBCUPSIMAGEORDER@
+-LINKCUPS	=	@LINKCUPS@ $(SSLLIBS)
++LINKCUPS	=	@LINKCUPS@ $(SSLLIBS) $(LIBZ)
+ LINKCUPSIMAGE	=	@LINKCUPSIMAGE@
+ LIBS		=	$(LINKCUPS) $(COMMONLIBS)
+ OPTIM		=	@OPTIM@