-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
investigatingInvestigating the issueInvestigating the issueplatform issueIssue is specific to an OS or desktopIssue is specific to an OS or desktop
Milestone
Description
Describe the bug
I cross compile libcups with sysroot, I must use a CFLAGS with sysroot, otherwise configure will failed:
checking for inflateCopy in -lz... no
configure: error: Sorry, this software requires ZLIB 1.1 or higher.
I must use PKG_CONFIG_ALLOW_SYSTEM_LIBS=1, otherwise build will failed. But if I set the PKG_CONFIG_xxx environment variable, the cups3.pc has an unexpected content:
Lib.private: -L/tmp/mysysroot/usr/lib -lavahi-common -lavahi-client -lz -lm -lpthread
To Reproduce
Steps to reproduce the behavior:
- Extract the tar file and enter the source directory
- run ./configure --host=aarch64-linux-gnu
- configure will failed
- export CFLAGS="--sysroot=/tmp/mysysroot"
- run ./configure --host=aarch64-linux-gnu
- configure will successful and the cups3.pc don't have the unexpected content
- run make, neither pdfio nor libcups can't find the depend libraries
- export PKG_CONFIG_LIBDIR=/tmp/mysysrot/usr/lib/pkgconfig
- export PKG_CONFIG_SYSROOT_DIR=/tmp/mysysroot
- export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
- run ./configure --host=aarch64-linux-gnu
- configure will successful but the cups3.pc don't have the unexpected content
- run make, both pdfio and libcups build sucessful.
Expected behavior
the cups3.pc shoud be:
Lib.private: -lavahi-common -lavahi-client -lz -lm -lpthread
System Information:
- OS: Ubuntu 22.04 LTS
- Version libcups3.0rc4
Metadata
Metadata
Assignees
Labels
investigatingInvestigating the issueInvestigating the issueplatform issueIssue is specific to an OS or desktopIssue is specific to an OS or desktop