summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2018-11-09 22:27:37 +0100
committerRuben Undheim <ruben.undheim@gmail.com>2018-11-09 22:27:37 +0100
commit87a87cafd7791001938134d985752956b1ddd65f (patch)
tree8e440e12ac2605232a58f0b1f6b17fd628271242
parentaddd94537182f10788012572b78cf897615c566e (diff)
Do not build nativedebian/4.5.2-2
-rw-r--r--debian/changelog6
-rw-r--r--debian/patches/0001-Add-CMakeLists.txt-to-make-shared-library.patch2
-rw-r--r--debian/patches/0002-no-native-build.patch21
-rw-r--r--debian/patches/series1
4 files changed, 27 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index b0e1194..e2bfb1f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
-fparserc++ (4.5.2-2) UNRELEASED; urgency=medium
+fparserc++ (4.5.2-2) unstable; urgency=medium
* debian/control:
- - Fix VCS URLs to salsa
+ - Fix Vcs URLs to salsa
+ * debian/patches/0002-no-native-build.patch
+ - Do not build with -march=native
-- Ruben Undheim <ruben.undheim@gmail.com> Sat, 25 Aug 2018 21:43:28 +0200
diff --git a/debian/patches/0001-Add-CMakeLists.txt-to-make-shared-library.patch b/debian/patches/0001-Add-CMakeLists.txt-to-make-shared-library.patch
index 51d257d..b155564 100644
--- a/debian/patches/0001-Add-CMakeLists.txt-to-make-shared-library.patch
+++ b/debian/patches/0001-Add-CMakeLists.txt-to-make-shared-library.patch
@@ -9,7 +9,7 @@ Subject: Add CMakeLists.txt to make shared library
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
-index 0000000..541a137
+index 0000000..3285543
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,27 @@
diff --git a/debian/patches/0002-no-native-build.patch b/debian/patches/0002-no-native-build.patch
new file mode 100644
index 0000000..f84ae40
--- /dev/null
+++ b/debian/patches/0002-no-native-build.patch
@@ -0,0 +1,21 @@
+From: Ruben Undheim <ruben.undheim@gmail.com>
+Date: Fri, 9 Nov 2018 22:25:55 +0100
+Subject: no native build
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 9370c23..de4c82e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -33,7 +33,7 @@ else
+ FEATURE_FLAGS = $(FP_FEATURE_FLAGS)
+ endif
+
+-OPTIMIZATION=-O3 -ffast-math -march=native
++OPTIMIZATION=-O3 -ffast-math
+ # -ffunction-sections -fdata-sections
+
+ # For GCC (not clang):
diff --git a/debian/patches/series b/debian/patches/series
index bbb3006..f712efd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Add-CMakeLists.txt-to-make-shared-library.patch
+0002-no-native-build.patch