forked from pool/libparserutils
- libparserutils-optflags.patch Do not use Werror and do not define _BSD_SOURCE but GNU_SOURCE. (fix factory build) - use std=gnu99 instead of strict c99. - Doxygen should not generate timestamped html docs. OBS-URL: https://build.opensuse.org/request/show/259062 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libparserutils?expand=0&rev=5
20 lines
644 B
Diff
20 lines
644 B
Diff
--- libparserutils-0.2.0.orig/Makefile
|
|
+++ libparserutils-0.2.0/Makefile
|
|
@@ -17,13 +17,13 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-
|
|
-Wmissing-declarations -Wnested-externs -pedantic
|
|
# BeOS/Haiku standard library headers create warnings.
|
|
ifneq ($(TARGET),beos)
|
|
- WARNFLAGS := $(WARNFLAGS) -Werror
|
|
+ WARNFLAGS := $(WARNFLAGS)
|
|
endif
|
|
|
|
-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
|
|
+CFLAGS := -D_GNU_SOURCE -I$(CURDIR)/include/ \
|
|
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
|
|
ifneq ($(GCCVER),2)
|
|
- CFLAGS := $(CFLAGS) -std=c99
|
|
+ CFLAGS := $(CFLAGS) -std=gnu99
|
|
else
|
|
# __inline__ is a GCCism
|
|
CFLAGS := $(CFLAGS) -Dinline="__inline__"
|