cups: fix static linking
PATCH 1/2 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/
--- 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
package/cups/cups-0001-fix-static.patch new file +28 -0
@@ -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 <[email protected]> +--- 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@
Signature · 1 line
1.7.1
PATCH 2/2 cups: rename patches to follow BR guidelines
---
...h => cups-0002-fix-stack-protector-check.patch} | 0
...s-mantohtml.patch => cups-0003-mantohtml.patch} | 0
2 files changed, 0 insertions(+), 0 deletions(-)
rename package/cups/{cups-fix-stack-protector-check.patch => cups-0002-fix-stack-protector-check.patch} (100%)
rename package/cups/{cups-mantohtml.patch => cups-0003-mantohtml.patch} (100%)package/cups/cups-0002-fix-stack-protector-check.patch renamed from package/cups/cups-fix-stack-protector-check.patch +0 -0
package/cups/cups-0003-mantohtml.patch renamed from package/cups/cups-mantohtml.patch +0 -0
Signature · 1 line
1.7.1
PATCH 1/2 cups: fix static linking
In reply to Vicente Olivert RieraQuoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Vicente" == Vicente Olivert Riera <[email protected]> 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....
Quoted 6 lines
This solution is the same used upstream in newer versions.
Fixes:
http://autobuild.buildroot.net/results/f3d/f3d4f67ce7ee1d54f5bd4c87dfddb7417db614e5/Signed-off-by Vicente Olivert Riera <[email protected]>
Committed both, thanks.
Signature · 1 line
Bye, Peter Korsgaard