diff options
author | Giovanni Panozzo <giovanni@panozzo.it> | 2020-07-29 01:07:18 +0300 |
---|---|---|
committer | Giovanni Panozzo <giovanni@panozzo.it> | 2020-07-29 01:07:18 +0300 |
commit | 2b44d5229454496ffb1846b8701043d258229187 (patch) | |
tree | 9148eba1431fc5054a5851c0d161cb4331682a30 | |
parent | 97f0237179a74a2bafdaa7da1275277e489018ae (diff) |
Use -O1 on armhf instead of -O2
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 18a1c0d..857b92d 100755 --- a/debian/rules +++ b/debian/rules @@ -62,6 +62,11 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_INCLUDEDIR=include/$(shell dpkg-archit # Add FFmpeg and GSM support to Ubuntu DEB_CMAKE_EXTRA_FLAGS += -DWITH_FFMPEG=ON -DWITH_GSM=ON +# gcc on ubuntu 18.04 armhf is bugged when using -O2. Replace with -O1 +ifeq (,$(filter armhf,$(DEB_HOST_ARCH))) +DEB_CMAKE_EXTRA_FLAGS += -DCMAKE_C_FLAGS="-O1 -g" +endif + %: dh $@ |