r4039 - in trunk/varnish-cache: . lib

phk at projects.linpro.no phk at projects.linpro.no
Tue Apr 28 10:33:19 CEST 2009


Author: phk
Date: 2009-04-28 10:33:19 +0200 (Tue, 28 Apr 2009)
New Revision: 4039

Modified:
   trunk/varnish-cache/configure.ac
   trunk/varnish-cache/lib/Makefile.am
Log:
Reorder libraries

add "-Wl,--as-needed" to EXTRA_DEVELOPER_CFLAGS to try to prevent
future unordering.

Fixes #486



Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2009-04-27 22:18:24 UTC (rev 4038)
+++ trunk/varnish-cache/configure.ac	2009-04-28 08:33:19 UTC (rev 4039)
@@ -305,7 +305,7 @@
 DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
 
 # Additional flags for GCC 4
-EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare"
+EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wl,--as-needed"
 
 # --enable-developer-warnings
 AC_ARG_ENABLE(developer-warnings,

Modified: trunk/varnish-cache/lib/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/Makefile.am	2009-04-27 22:18:24 UTC (rev 4038)
+++ trunk/varnish-cache/lib/Makefile.am	2009-04-28 08:33:19 UTC (rev 4039)
@@ -1,15 +1,15 @@
 # $Id$
 
 SUBDIRS = \
+	libvarnishcompat \
 	libvarnish \
 	libvarnishapi \
-	libvarnishcompat \
 	libvcl \
 	@JEMALLOC_SUBDIR@
 
 DIST_SUBDIRS = 	\
+	libvarnishcompat \
 	libvarnish \
 	libvarnishapi \
-	libvarnishcompat \
 	libvcl \
 	libjemalloc



More information about the varnish-commit mailing list