New commits:
commit 03574b320aa98817657765dde530ae214780b21c
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
wvdial: build fix (disable as-needed), sync compiler flags with wvstreams
commit 83714d7765414cbe21d035d205e39259b1b79dcb
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
wvstreams: avoid crash with modern gcc
commit 5679f798055a67dc8b7d03ba7618e5952ab694db
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
wvstreams: fix build again
diff --git a/net/wvdial/BUILD b/net/wvdial/BUILD
new file mode 100755
index 0000000..d327993
--- /dev/null
+++ b/net/wvdial/BUILD
@@ -0,0 +1,7 @@
+# Take same care as for wvstreams with optimization flags,
+# also disable as-needed linking as that breaks the build.
+CPPFLAGS="-D_DEFAULT_SOURCE=1 $CPPFLAGS" \
+CXXFLAGS="$CXXFLAGS -fno-tree-dce -fno-optimize-sibling-calls" \
+CFLAGS="$CFLAGS -fno-tree-dce -fno-optimize-sibling-calls" \
+LDFLAGS=${LDFLAGS/-Wl,--as-needed/} \
+default_build
diff --git a/net/wvdial/HISTORY b/net/wvdial/HISTORY
index 4f84af3..2e35295 100644
--- a/net/wvdial/HISTORY
+++ b/net/wvdial/HISTORY
@@ -1,3 +1,8 @@
+2015-12-26 Thomas Orgis <sobukus AT sourcemage.org>
+ * BUILD: disable optimizations as for wvstreams, to be safe,
+ disable as-needed to fix build (some necromancy, wvdial
+ being still useful)
+
2011-10-25 Ladislav Hagara <hgr AT vabo.cz>
* DETAILS: 1.61, SOURCE_URL[0] updated, no asc file
* BUILD: removed
diff --git a/net/wvstreams/BUILD b/net/wvstreams/BUILD
index 752c7f1..ebcb0ad 100755
--- a/net/wvstreams/BUILD
+++ b/net/wvstreams/BUILD
@@ -1 +1,4 @@
-CPPFLAGS="-I/usr/include/qt $CPPFLAGS" default_build
+CPPFLAGS="-I/usr/include/qt -D_DEFAULT_SOURCE=1 $CPPFLAGS" \
+CXXFLAGS="$CXXFLAGS -fno-tree-dce -fno-optimize-sibling-calls" \
+CFLAGS="$CFLAGS -fno-tree-dce -fno-optimize-sibling-calls" \
+default_build
diff --git a/net/wvstreams/HISTORY b/net/wvstreams/HISTORY
index 96bc8a6..77bb771 100644
--- a/net/wvstreams/HISTORY
+++ b/net/wvstreams/HISTORY
@@ -1,3 +1,9 @@
+2015-12-26 Thomas Orgis <sobukus AT sourcemage.org>
+ * PRE_BUILD, *-getuid.patch: include unistd.h for getuid()
+ * BUILD: define _DEFAULT_SOURCE to silence build (a bit)
+ * BUILD: avoid certain gcc optimizations
+ (https://bugzilla.redhat.com/show_bug.cgi?id=812651)
+
2014-08-24 Treeve Jelbert <treeve AT sourcemage.org>
* DEPENDS: fix bad with-SSL usage