[pkg-d-commits] [ldc] 01/01: Compile without NEON on armhf

Matthias Klumpp mak at moszumanska.debian.org
Tue Oct 4 19:42:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to branch master
in repository ldc.

commit 24c6f3f9bf26c9afeedb0a4da36a9b9a0856ca0b
Author: Matthias Klumpp <matthias at tenstral.net>
Date:   Tue Oct 4 21:17:32 2016 +0200

    Compile without NEON on armhf
---
 debian/rules | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8485c2b..1d0e9fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,18 +3,27 @@
 #export DH_VERBOSE=1
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 CFLAGS += $(CPPFLAGS)
 CXXFLAGS += $(CPPFLAGS)
 
+LDC_BUILD_FLAGS = -DINCLUDE_INSTALL_DIR='/usr/lib/ldc/${DEB_HOST_MULTIARCH}/include/d'
+
+ifeq ($(DEB_HOST_ARCH),armhf)
+LDC_BUILD_FLAGS += -DD_COMPILER_FLAGS=-mattr=-neon
+endif
+
+
 %:
 	dh $@ --parallel
 
 override_dh_auto_configure:
 	[ -d build-static ] || mkdir build-static
-	dh_auto_configure -D$(CURDIR) -B$(CURDIR)/build-static -- -DBUILD_SHARED_LIBS=OFF -DINCLUDE_INSTALL_DIR='/usr/lib/ldc/${DEB_HOST_MULTIARCH}/include/d'
+	dh_auto_configure -D$(CURDIR) -B$(CURDIR)/build-static -- -DBUILD_SHARED_LIBS=OFF $(LDC_BUILD_FLAGS)
 
 	[ -d build-shared ] || mkdir build-shared
-	dh_auto_configure -D$(CURDIR) -B$(CURDIR)/build-shared -- -DBUILD_SHARED_LIBS=ON -DINCLUDE_INSTALL_DIR='/usr/lib/ldc/${DEB_HOST_MULTIARCH}/include/d'
+	dh_auto_configure -D$(CURDIR) -B$(CURDIR)/build-shared -- -DBUILD_SHARED_LIBS=ON $(LDC_BUILD_FLAGS)
 
 override_dh_auto_build:
 	dh_auto_build -Bbuild-static

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list