|
|
@@ -17,20 +17,18 @@ dpkg_buildflags = \
|
|
|
DEB_CXXFLAGS_MAINT_APPEND="$(WFLAGS)" \
|
|
|
$(CURDIR)/run-script perl scripts/dpkg-buildflags.pl
|
|
|
|
|
|
-# These are used for cross-compiling and for saving the configure script
|
|
|
-# from having to guess our platform (since we know it already)
|
|
|
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
|
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
|
|
|
|
|
+# Support cross-compiling.
|
|
|
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
|
|
confflags += --build=$(DEB_HOST_GNU_TYPE)
|
|
|
else
|
|
|
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
|
|
|
endif
|
|
|
|
|
|
-# Don't enable everything on all platforms
|
|
|
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
|
|
-
|
|
|
+# Do not enable everything on all platforms.
|
|
|
ifeq ($(DEB_HOST_ARCH_OS),linux)
|
|
|
confflags += --with-selinux
|
|
|
endif
|