diff options
author | Steve Langasek <steve.langasek@ubuntu.com> | 2018-06-03 20:28:56 +0530 |
---|---|---|
committer | Vasudev Kamath <vasudev@copyninja.info> | 2018-06-03 20:28:56 +0530 |
commit | fb1dcaf66b36132858f3bb89d01d41c414a98bba (patch) | |
tree | a9d7e4a6bdcf6847b7fb619733c58d10f4cfcb33 /Makefile | |
parent | 310061b6c7305400010f862c6ff5f6cbe94747be (diff) |
Use -D_GNU_SOURCE for gcc-7 compatibility
baresip fails to build with gcc-7 because libdirectfb-dev needs to know
the size of struct timespec, which is an opaque type unless we're using
GNU extensions, but libre-dev sets -std=c99. Adjust cflags to enable
_GNU_SOURCE.
Bug-Debian: https://bugs.debian.org/872406
Last-Update: 2017-08-26
Gbp-Pq: Name 1001_gcc7_compat.patch
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -49,6 +49,7 @@ endif CFLAGS += -I. -Iinclude -I$(LIBRE_INC) -I$(SYSROOT)/include CFLAGS += -I$(LIBREM_PATH)/include CFLAGS += -I$(SYSROOT)/local/include/rem -I$(SYSROOT)/include/rem +CFLAGS += -D_GNU_SOURCE CXXFLAGS += -I. -Iinclude -I$(LIBRE_INC) CXXFLAGS += -I$(LIBREM_PATH)/include |