summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-09 17:13:11 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-09 17:13:11 -0700
commitdbf88774a77d91f3f7996071dfccf61636afa77b (patch)
tree8bda07b87cdcd3f11a1620fbc3e8c9a0314f82a6
parent7cc28e8ae807e69663e0a73cd12edf9963277a2d (diff)
Adjust flags definitions to fix lint library build
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am7
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index b463825..084b3ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,6 @@ XORG_CWARNFLAGS
# Check for dependencies
PKG_CHECK_MODULES(XV, x11 xext xextproto videoproto)
-XV_CFLAGS="$CWARNFLAGS $XV_CFLAGS"
AC_SUBST(XV_CFLAGS)
AC_SUBST(XV_LIBS)
@@ -52,7 +51,6 @@ XORG_CHANGELOG
dnl Allow checking code with lint, sparse, etc.
XORG_WITH_LINT
XORG_LINT_LIBRARY([Xv])
-LINT_FLAGS="${LINT_FLAGS} ${XV_CFLAGS}"
AC_OUTPUT([Makefile
include/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 394233f..0948474 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,7 +5,8 @@ libXv_la_SOURCES = \
Xvlibint.h
libXv_la_LIBADD = @XV_LIBS@
-AM_CFLAGS = @XV_CFLAGS@ -I$(top_srcdir)/include @MALLOC_ZERO_CFLAGS@
+AM_CPPFLAGS = @XV_CFLAGS@ -I$(top_srcdir)/include @MALLOC_ZERO_CFLAGS@
+AM_CFLAGS = $(CWARNFLAGS)
libXv_la_LDFLAGS = -version-number 1:0:0 -no-undefined
@@ -23,6 +24,8 @@ lintlibdir = $(libdir)
lintlib_DATA = $(LINTLIB)
$(LINTLIB): $(libXau_la_SOURCES)
- $(LINT) -y -oXv -x $(ALL_LINT_FLAGS) $(libXv_la_SOURCES)
+ $(LINT) -y -oXv -x $(ALL_LINT_FLAGS) $(libXv_la_SOURCES)
+
+CLEANFILES = $(LINTLIB)
endif MAKE_LINT_LIB