diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-02-06 20:17:38 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-02-06 20:17:38 +0000 |
commit | 6922f59fb7c398c89e1dbe57a6b1813c376bb344 (patch) | |
tree | 7af61d1fd8e1596398b78a93aed05e4296d3db9e /x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch | |
parent | correct last entry (diff) | |
download | gentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.tar.gz gentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.tar.bz2 gentoo-2-6922f59fb7c398c89e1dbe57a6b1813c376bb344.zip |
x11-misc/spnavcfg: 0.2.1 (bug #390427)
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch')
-rw-r--r-- | x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch new file mode 100644 index 000000000000..5e4c788dcffe --- /dev/null +++ b/x11-misc/spnavcfg/files/spnavcfg-0.2.1-custom-flags.patch @@ -0,0 +1,44 @@ +diff -Npur spnavcfg-0.2.1.orig/Makefile.in spnavcfg-0.2.1/Makefile.in +--- spnavcfg-0.2.1.orig/Makefile.in 2012-01-31 22:16:40.789374658 +0100 ++++ spnavcfg-0.2.1/Makefile.in 2012-01-31 22:17:01.146374359 +0100 +@@ -5,8 +5,8 @@ warn = -Wall -Wno-int-to-pointer-cast -W + + CC = gcc + INSTALL = install +-CFLAGS = -pedantic $(warn) $(dbg) $(opt) `pkg-config --cflags gtk+-2.0` +-LDFLAGS = `pkg-config --libs gtk+-2.0` ++CFLAGS = $(user_cflags) `pkg-config --cflags gtk+-2.0` ++LDFLAGS = $(user_ldflags) `pkg-config --libs gtk+-2.0` + + $(bin): $(obj) + $(CC) -o $@ $(obj) $(LDFLAGS) +diff -Npur spnavcfg-0.2.1.orig/configure spnavcfg-0.2.1/configure +--- spnavcfg-0.2.1.orig/configure 2012-01-31 22:16:40.789374658 +0100 ++++ spnavcfg-0.2.1/configure 2012-01-31 22:17:01.146374359 +0100 +@@ -43,6 +43,12 @@ done + echo " prefix: $PREFIX" + echo " optimize for speed: $OPT" + echo " include debugging symbols: $DBG" ++if [ -n "$CFLAGS" ]; then ++ echo " cflags: $CFLAGS" ++fi ++if [ -n "$LDFLAGS" ]; then ++ echo " ldflags: $LDFLAGS" ++fi + echo + + # create Makefile +@@ -58,6 +64,13 @@ if [ "$OPT" = 'yes' ]; then + echo 'opt = -O3' >>Makefile + fi + ++if [ -n "$CFLAGS" ]; then ++ echo "user_cflags = $CFLAGS" >>Makefile ++fi ++if [ -n "$LDFLAGS" ]; then ++ echo "user_ldflags = $LDFLAGS" >>Makefile ++fi ++ + cat "$srcdir/Makefile.in" >>Makefile + + echo '' |