mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
buildsys: eschew use of DEFS, prefer AM_CPPFLAGS
This is redundant, and any usage of -D should belong to CPPFLAGS. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
768c8ba100
commit
40d6894910
@ -486,7 +486,6 @@ ${PACKAGE_NAME}:
|
||||
compiler : ${CC}
|
||||
preprocessor flags : ${CPPFLAGS}
|
||||
compiler flags : ${WARNING_CFLAGS} ${CFLAGS}
|
||||
defines : ${DEFS}
|
||||
library flags : ${LIBS} ${LIBSSL_LIBS} ${LIBARCHIVE_LIBS} ${LIBCURL_LIBS} ${GPGME_LIBS}
|
||||
linker flags : ${LDFLAGS}
|
||||
|
||||
|
@ -5,10 +5,9 @@ SUBDIRS = po
|
||||
lib_LTLIBRARIES = libalpm.la
|
||||
include_HEADERS = alpm_list.h alpm.h
|
||||
|
||||
DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-imacros $(top_builddir)/config.h
|
||||
-imacros $(top_builddir)/config.h \
|
||||
-DLOCALEDIR=\"@localedir@\"
|
||||
|
||||
AM_CFLAGS = -pedantic -D_GNU_SOURCE $(WARNING_CFLAGS)
|
||||
|
||||
|
@ -9,23 +9,21 @@ logfile = ${localstatedir}/log/pacman.log
|
||||
|
||||
bin_PROGRAMS = pacman
|
||||
|
||||
DEFS = -DLOCALEDIR=\"@localedir@\" \
|
||||
-DCONFFILE=\"$(conffile)\" \
|
||||
-DDBPATH=\"$(dbpath)\" \
|
||||
-DGPGDIR=\"$(gpgdir)\" \
|
||||
-DCACHEDIR=\"$(cachedir)\" \
|
||||
-DLOGFILE=\"$(logfile)\" \
|
||||
@DEFS@
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-imacros $(top_builddir)/config.h \
|
||||
-I$(top_srcdir)/lib/libalpm
|
||||
-I$(top_srcdir)/lib/libalpm \
|
||||
-DLOCALEDIR=\"@localedir@\" \
|
||||
-DCONFFILE=\"$(conffile)\" \
|
||||
-DDBPATH=\"$(dbpath)\" \
|
||||
-DGPGDIR=\"$(gpgdir)\" \
|
||||
-DCACHEDIR=\"$(cachedir)\" \
|
||||
-DLOGFILE=\"$(logfile)\"
|
||||
|
||||
AM_CFLAGS = -pedantic -D_GNU_SOURCE $(WARNING_CFLAGS)
|
||||
|
||||
if USE_GIT_VERSION
|
||||
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
|
||||
DEFS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||
AM_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||
endif
|
||||
|
||||
pacman_SOURCES = \
|
||||
|
@ -6,16 +6,14 @@ cachedir = ${localstatedir}/cache/pacman/pkg/
|
||||
|
||||
bin_PROGRAMS = vercmp testpkg testdb cleanupdelta pacsort pactree
|
||||
|
||||
DEFS = -DLOCALEDIR=\"@localedir@\" \
|
||||
-DCONFFILE=\"$(conffile)\" \
|
||||
-DDBPATH=\"$(dbpath)\" \
|
||||
-DGPGDIR=\"$(gpgdir)\" \
|
||||
-DCACHEDIR=\"$(cachedir)\" \
|
||||
@DEFS@
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-imacros $(top_builddir)/config.h \
|
||||
-I$(top_srcdir)/lib/libalpm
|
||||
-I$(top_srcdir)/lib/libalpm \
|
||||
-DLOCALEDIR=\"@localedir@\" \
|
||||
-DCONFFILE=\"$(conffile)\" \
|
||||
-DDBPATH=\"$(dbpath)\" \
|
||||
-DGPGDIR=\"$(gpgdir)\" \
|
||||
-DCACHEDIR=\"$(cachedir)\"
|
||||
|
||||
AM_CFLAGS = -pedantic -D_GNU_SOURCE $(WARNING_CFLAGS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user