]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Better workaround for CFLAGS issues from #14072; fixes #14162
authorNick Mathewson <nickm@torproject.org>
Sat, 10 Jan 2015 22:21:11 +0000 (17:21 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 10 Jan 2015 22:21:11 +0000 (17:21 -0500)
When I applied patch fcc78e5f8a3249eadfea31db, I somehow broke
stack trace symbols on Linux.  I'll leave it to others to figure out
why that happens.  This should be better.  Really.

Fixes bug 14162; bug not in any released version of Tor.

Makefile.am
configure.ac

index f105464b71b1820bbd660f177b8b3d867cb6c7eb..67c9cc9d25fe4b03902321564b3f6fc853446bcf 100644 (file)
@@ -19,6 +19,7 @@ noinst_PROGRAMS=
 DISTCLEANFILES=
 bin_SCRIPTS=
 AM_CPPFLAGS=
+AM_CFLAGS = @TOR_SYSTEMD_CFLAGS@
 include src/include.am
 include doc/include.am
 include contrib/include.am
index 2c92a6c4091d1bd8e820780527ab81101e62b5b0..1fd5960366b2c9a4f93641db571647812ab6181a 100644 (file)
@@ -130,9 +130,10 @@ fi
 
 if test x$have_systemd = xyes; then
     AC_DEFINE(HAVE_SYSTEMD,1,[Have systemd])
-    CFLAGS="${CFLAGS} ${SYSTEMD_CFLAGS}"
+    TOR_SYSTEMD_CFLAGS="${SYSTEMD_CFLAGS}"
     TOR_SYSTEMD_LIBS="${SYSTEMD_LIBS}"
 fi
+AC_SUBST(TOR_SYSTEMD_CFLAGS)
 AC_SUBST(TOR_SYSTEMD_LIBS)
 
 if test x$enable_systemd = xyes -a x$have_systemd != xyes ; then
@@ -1543,7 +1544,7 @@ fi
 if test "$GCC" = yes; then
   # Disable GCC's strict aliasing checks.  They are an hours-to-debug
   # accident waiting to happen.
-  CFLAGS="$CFLAGS -Wall -fno-strict-aliasing -g -O2"
+  CFLAGS="$CFLAGS -Wall -fno-strict-aliasing"
 else
   # Override optimization level for non-gcc compilers
   CFLAGS="$CFLAGS -O"