Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bdb3129f
Commit
bdb3129f
authored
Feb 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: declare AM_CFLAGS
Moved generic compiler options to AM_CFLAGS. MPD_CFLAGS/MPD_LIBS will hopefully fade away one day, in favor of more fine-grained variables.
parent
6fdaa496
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Makefile.am
Makefile.am
+1
-1
configure.ac
configure.ac
+4
-2
mpd_check_cflag.m4
m4/mpd_check_cflag.m4
+1
-1
No files found.
Makefile.am
View file @
bdb3129f
...
@@ -6,7 +6,7 @@ AM_LDFLAGS = $(GLIB_LIBS)
...
@@ -6,7 +6,7 @@ AM_LDFLAGS = $(GLIB_LIBS)
bin_PROGRAMS
=
src/mpd
bin_PROGRAMS
=
src/mpd
src_mpd_CFLAGS
=
$(MPD_CFLAGS)
src_mpd_CFLAGS
=
$(
AM_CFLAGS)
$(
MPD_CFLAGS)
src_mpd_CPPFLAGS
=
$(AM_CPPFLAGS)
\
src_mpd_CPPFLAGS
=
$(AM_CPPFLAGS)
\
$(SQLITE_CFLAGS)
\
$(SQLITE_CFLAGS)
\
$(ID3TAG_CFLAGS)
\
$(ID3TAG_CFLAGS)
\
...
...
configure.ac
View file @
bdb3129f
...
@@ -24,6 +24,8 @@ dnl
...
@@ -24,6 +24,8 @@ dnl
dnl declare variables
dnl declare variables
dnl
dnl
AC_SUBST(AM_CFLAGS,"")
AC_SUBST(MPD_LIBS)
AC_SUBST(MPD_LIBS)
AC_SUBST(MPD_CFLAGS)
AC_SUBST(MPD_CFLAGS)
MPD_LIBS=""
MPD_LIBS=""
...
@@ -1105,7 +1107,7 @@ AC_ARG_ENABLE(werror,
...
@@ -1105,7 +1107,7 @@ AC_ARG_ENABLE(werror,
ENABLE_WERROR=no)
ENABLE_WERROR=no)
if test "x$ENABLE_WERROR" = xyes; then
if test "x$ENABLE_WERROR" = xyes; then
MPD_CFLAGS="$MPD
_CFLAGS -Werror -pedantic-errors"
AM_CFLAGS="$AM
_CFLAGS -Werror -pedantic-errors"
fi
fi
AC_ARG_ENABLE(debug,
AC_ARG_ENABLE(debug,
...
@@ -1116,7 +1118,7 @@ AC_ARG_ENABLE(debug,
...
@@ -1116,7 +1118,7 @@ AC_ARG_ENABLE(debug,
#if test "x$ENABLE_DEBUG" = xno; then
#if test "x$ENABLE_DEBUG" = xno; then
# don't set NDEBUG for now, until MPD is stable
# don't set NDEBUG for now, until MPD is stable
#
MPD_CFLAGS="$MPD
_CFLAGS -DNDEBUG"
#
AM_CFLAGS="$AM
_CFLAGS -DNDEBUG"
#fi
#fi
AC_ARG_ENABLE(gprof,
AC_ARG_ENABLE(gprof,
...
...
m4/mpd_check_cflag.m4
View file @
bdb3129f
...
@@ -12,7 +12,7 @@ AC_DEFUN([MPD_CHECK_FLAG],[
...
@@ -12,7 +12,7 @@ AC_DEFUN([MPD_CHECK_FLAG],[
])
])
if eval "test x`echo '$mpd_check_cflag_'$var` = xyes"
if eval "test x`echo '$mpd_check_cflag_'$var` = xyes"
then
then
MPD_CFLAGS="$MPD
_CFLAGS $1"
AM_CFLAGS="$AM
_CFLAGS $1"
fi
fi
])
])
])
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment