Consistently use AM_CPPFLAGS, not AM_CFLAGS, for -D and -I options.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Oct 2008 21:38:22 +0000 (14:38 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Oct 2008 17:58:24 +0000 (10:58 -0700)
Makefile.am

index 9d2df98775f56c1de2034c57194ca02c30163a26..83e73de31f6a735d9cdad169ad5f9e0e21996ea1 100644 (file)
@@ -21,10 +21,11 @@ endif
 AM_CFLAGS = -Wstrict-prototypes
 
 rundir = $(localstatedir)/run
-AM_CFLAGS += -DRUNDIR=\"$(rundir)\"
+AM_CPPFLAGS += -DRUNDIR=\"$(rundir)\"
 
 if NDEBUG
-AM_CFLAGS += -DNDEBUG -fomit-frame-pointer
+AM_CPPFLAGS += -DNDEBUG
+AM_CFLAGS += -fomit-frame-pointer
 else
 AM_LDFLAGS = -export-dynamic
 endif