From c6713f6dfbbae94159c2c3d8a7af54170fe4d586 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 22 Jan 2012 02:07:51 +0300 Subject: Special CPPFLAGS and configure options for illumos --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index ceb272a1..e083ab35 100755 --- a/debian/rules +++ b/debian/rules @@ -41,9 +41,17 @@ ifeq ($(DEB_HOST_ARCH_OS),linux) CONFOPTS += --with-selinux endif ifeq ($(DEB_HOST_ARCH_OS),illumos) +CPPFLAGS = "-DBYTE_ORDER=LITTLE_ENDIAN -DLITTLE_ENDIAN=1234 -D__sighandler_t=sighandler_t -Difr_hwaddr=ifr_addr -DNGROUPS=NGROUPS_MAX" +# /bin is a symlink to /usr/bin: CONFOPTS += --bindir=/usr/bin CONFOPTS += --sbindir=/usr/sbin CONFOPTS += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) +# No /proc/partitions on Illumos/Solaris: +CONFOPTS += --disable-libblkid +CONFOPTS += --disable-mount +CONFOPTS += --disable-fsck +CONFOPTS += --disable-agetty +CONFOPTS += CPPFLAGS=$(CPPFLAGS) endif build: build-stamp -- cgit v1.2.3