diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 02:07:51 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 02:07:51 +0300 |
commit | c6713f6dfbbae94159c2c3d8a7af54170fe4d586 (patch) | |
tree | 591ffdb3fb117838e7c1bd3d2e1de51f65b7bc92 | |
parent | c5201fbac5f759893a3a224ea92ab01a2c4d2532 (diff) | |
download | util-linux-old-c6713f6dfbbae94159c2c3d8a7af54170fe4d586.tar.gz |
Special CPPFLAGS and configure options for illumos
-rwxr-xr-x | debian/rules | 8 |
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 |