[mupen64plus-input-sdl] 140/196: Add CFLAGS -D_GNU_SOURCE to allow usage of strcasestr
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:00:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch master
in repository mupen64plus-input-sdl.
commit 1a0f6038024ab0e0b3656e8d4d6c9bcc15894bb8
Author: Sven Eckelmann <sven at narfation.org>
Date: Sun Jun 23 10:34:54 2013 +0200
Add CFLAGS -D_GNU_SOURCE to allow usage of strcasestr
---
debian/changelog | 2 ++
debian/patches/cflags_gnu_source.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ca394d8..e3a078b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ mupen64plus-input-sdl (2.0~rc2+1+9aaeab081d97-2) UNRELEASED; urgency=low
- Add sdl2_keysym.patch, Use SDL1.2 keysym in the config when using SDL2
- Add sdl2_mousemode.patch, Add support for mouse based analog stick using
SDL2
+ - Add cflags_gnu_source.patch, Add CFLAGS -D_GNU_SOURCE to allow usage of
+ strcasestr
-- Sven Eckelmann <sven at narfation.org> Sun, 09 Jun 2013 22:36:16 +0200
diff --git a/debian/patches/cflags_gnu_source.patch b/debian/patches/cflags_gnu_source.patch
new file mode 100644
index 0000000..6bf0527
--- /dev/null
+++ b/debian/patches/cflags_gnu_source.patch
@@ -0,0 +1,17 @@
+Description: Add CFLAGS -D_GNU_SOURCE to allow usage of strcasestr
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/projects/unix/Makefile b/projects/unix/Makefile
+index 688c7cde515a301595f5ff25aa929b1aebdbd158..e056a1d52bb666bb49b170cb57434c8e702337a2 100644
+--- a/projects/unix/Makefile
++++ b/projects/unix/Makefile
+@@ -117,7 +117,7 @@ endif
+ # base CFLAGS, LDLIBS, and LDFLAGS
+ OPTFLAGS ?= -O3 -flto
+ WARNFLAGS ?= -Wall
+-CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src
++CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -D_GNU_SOURCE=1
+ LDFLAGS += $(SHARED)
+
+ # Since we are building a shared library, we must compile with -fPIC on some architectures
diff --git a/debian/patches/series b/debian/patches/series
index 33f561e..9938805 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
sdl2_forcefeedback.patch
sdl2_keysym.patch
sdl2_mousemode.patch
+cflags_gnu_source.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-input-sdl.git
More information about the Pkg-games-commits
mailing list