mirror of https://gitee.com/openkylin/cups.git
Debian: Use dpkg-architecture in cups-config to make it architecture-independant
Also filter -L/usr/lib/(triplet) out of LDFLAGS. Also strip unnecessary libs from --libs. Also launch krb5-config at runtime to avoid getting usr/lib/(triplet) from krb5-config Bug-Debian: https://bugs.debian.org/741519 Bug-Debian: https://bugs.debian.org/727058 Bug-Debian: https://bugs.debian.org/730838 Bug-Debian: https://bugs.debian.org/751157 Forwarded: not-needed
This commit is contained in:
parent
1012426432
commit
d53416c5f1
|
@ -18,7 +18,7 @@ prefix=@prefix@
|
|||
exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@
|
||||
includedir=@includedir@
|
||||
libdir=@libdir@
|
||||
libdir=${prefix}/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
datarootdir=@datadir@
|
||||
datadir=@datadir@
|
||||
sysconfdir=@sysconfdir@
|
||||
|
@ -30,7 +30,8 @@ INSTALLSTATIC=@INSTALLSTATIC@
|
|||
# flags for compiler and linker...
|
||||
CFLAGS=""
|
||||
LDFLAGS="@EXPORT_LDFLAGS@"
|
||||
LIBS="@LIBGSSAPI@ @DNSSDLIBS@ @EXPORT_TLSLIBS@ @LIBZ@ @LIBS@"
|
||||
LIBGSSAPI=`[ ! -x /usr/bin/krb5-config ] || /usr/bin/krb5-config --libs`
|
||||
LIBS="$LIBGSSAPI @DNSSDLIBS@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
|
||||
|
||||
# Check for local invocation...
|
||||
selfdir=`dirname $0`
|
||||
|
@ -44,7 +45,7 @@ else
|
|||
CFLAGS="$CFLAGS -I$includedir"
|
||||
fi
|
||||
|
||||
if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64; then
|
||||
if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64 -a $libdir != /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH); then
|
||||
LDFLAGS="$LDFLAGS -L$libdir"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue