blob: cce9643bb7ad9ba77b82e109e3a134c36f4dc031 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Description: 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.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Bug-Debian: https://bugs.debian.org/872406
Last-Update: 2017-08-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,7 @@
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
|