Skip to content

Commit

Permalink
Do not overwrite CPPFLAGS
Browse files Browse the repository at this point in the history
Use AM_CPPFLAGS instead of ovewriting CPPFLAGS.
CPPFLAGS is a user variable reserved for local modifications.
See
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
  • Loading branch information
mbiebl committed Jul 4, 2024
1 parent 1cc6dd1 commit 25d7759
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions modules/btrfs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SUBDIRS = data

NULL =

CPPFLAGS = \
AM_CPPFLAGS = \
-I$(top_builddir) -I$(top_srcdir) \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
Expand Down Expand Up @@ -51,7 +51,7 @@ libudisks2_btrfs_la_SOURCES = \
$(NULL)

libudisks2_btrfs_la_CPPFLAGS = \
$(CPPFLAGS) \
$(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"libudisks2-btrfs\" \
$(NULL)

Expand Down
4 changes: 2 additions & 2 deletions modules/iscsi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SUBDIRS = data

NULL =

CPPFLAGS = \
AM_CPPFLAGS = \
-I$(top_builddir) -I$(top_srcdir) \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
Expand Down Expand Up @@ -56,7 +56,7 @@ libudisks2_iscsi_la_SOURCES += \
endif # BUILD_ISCSI_SESSION_OBJECT

libudisks2_iscsi_la_CPPFLAGS = \
$(CPPFLAGS) \
$(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"libudisks2-iscsi\" \
$(NULL)

Expand Down
4 changes: 2 additions & 2 deletions modules/lsm/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SUBDIRS = data

NULL =

CPPFLAGS = \
AM_CPPFLAGS = \
-I$(top_builddir) -I$(top_srcdir) \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
Expand Down Expand Up @@ -48,7 +48,7 @@ libudisks2_lsm_la_SOURCES = \
$(NULL)

libudisks2_lsm_la_CPPFLAGS = \
$(CPPFLAGS) \
$(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"libudisks2-lsm\" \
$(NULL)

Expand Down
4 changes: 2 additions & 2 deletions modules/lvm2/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SUBDIRS = data

NULL =

CPPFLAGS = \
AM_CPPFLAGS = \
-I$(top_builddir) -I$(top_srcdir) \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
Expand Down Expand Up @@ -55,7 +55,7 @@ libudisks2_lvm2_la_SOURCES = \
$(NULL)

libudisks2_lvm2_la_CPPFLAGS = \
$(CPPFLAGS) \
$(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"libudisks2-lvm2\" \
$(NULL)

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ EXTRA_DIST =

CLEANFILES =

CPPFLAGS = \
AM_CPPFLAGS = \
-I$(top_builddir) -I$(top_srcdir) \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
Expand Down

0 comments on commit 25d7759

Please sign in to comment.