summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-22 02:07:51 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-22 02:07:51 +0300
commitc6713f6dfbbae94159c2c3d8a7af54170fe4d586 (patch)
tree591ffdb3fb117838e7c1bd3d2e1de51f65b7bc92
parentc5201fbac5f759893a3a224ea92ab01a2c4d2532 (diff)
downloadutil-linux-old-c6713f6dfbbae94159c2c3d8a7af54170fe4d586.tar.gz
Special CPPFLAGS and configure options for illumos
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
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