cups: fix libdir handling
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 6 Jun 2012 13:03:58 +0000 (15:03 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 6 Jun 2012 13:06:27 +0000 (15:06 +0200)
Cups uses /usr/lib64 if the HOST has it, no matter if it is cross compiling
for a 32bit arch, breaking the build for stuff looking in /usr/lib.

Fixes http://autobuild.buildroot.net/results/4ed4f5b43d05a40ab15f141442f15da56c87be3b

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/cups/cups.mk

index f06502ab271877d8676340a276a7872e2deb60ef..6d906ec942b8520bb58f31545aacc205bf3a98bd 100644 (file)
@@ -13,7 +13,8 @@ CUPS_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
 CUPS_CONF_OPT = --without-perl \
                --without-java \
                --disable-gnutls \
-               --disable-gssapi
+               --disable-gssapi \
+               --libdir=/usr/$(if $(BR2_ARCH_IS_64),lib64,lib)
 
 CUPS_DEPENDENCIES = $(if $(BR2_PACKAGE_ZLIB),zlib) \
                    $(if $(BR2_PACKAGE_LIBPNG),libpng) \