Skip to content

Commit

Permalink
Define AM_CFLAGS inside the Makefile.am files themselves.
Browse files Browse the repository at this point in the history
Trying to include AM_CFLAGS through a configure generated rpm.am file
doesn't really work because at the time automake runs configure doesn't
exist yet to process rpm.am.in. Just define the AM_CFLAGS substitution
inside the Makefile.am files themselves.

Rename rpm.am.in back to rpm.am.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
  • Loading branch information
Mark Wielaard authored and pmatilai committed Dec 9, 2016
1 parent 4e6583f commit 3d4db6f
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --with-external-db

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

CLEANFILES =
EXTRA_DIST = ChangeLog CREDITS INSTALL \
Expand Down
1 change: 1 addition & 0 deletions build/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpmbuild library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ AC_PATH_PROG(AUTOM4TE,autom4te,:)

AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])

AC_CONFIG_FILES([Makefile rpm.am
AC_CONFIG_FILES([Makefile
rpmio/Makefile lib/Makefile build/Makefile sign/Makefile
po/Makefile.in scripts/Makefile fileattrs/Makefile
misc/Makefile
Expand Down
1 change: 1 addition & 0 deletions fileattrs/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm file attributes

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

fattrsdir = $(rpmconfigdir)/fileattrs

Expand Down
1 change: 1 addition & 0 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
Expand Down
1 change: 1 addition & 0 deletions plugins/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
AM_CPPFLAGS += -I$(top_srcdir)/misc
Expand Down
1 change: 1 addition & 0 deletions python/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

EXTRA_DIST = rpm/__init__.py rpm/transaction.py

Expand Down
2 changes: 0 additions & 2 deletions rpm.am.in → rpm.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ rpmconfigdir = $(prefix)/lib/rpm

# Libtool version (current-revision-age) for all our libraries
rpm_version_info = 7:0:0

AM_CFLAGS = @RPMCFLAGS@
1 change: 1 addition & 0 deletions rpmio/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
AM_CPPFLAGS += @WITH_NSS_INCLUDE@
Expand Down
1 change: 1 addition & 0 deletions scripts/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm scripts.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

CLEANFILES =

Expand Down
1 change: 1 addition & 0 deletions sign/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile for rpm library.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
Expand Down
1 change: 1 addition & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Process this file with automake to produce Makefile.in.

include $(top_srcdir)/rpm.am
AM_CFLAGS = @RPMCFLAGS@

EXTRA_DIST =
CLEANFILES =
Expand Down

0 comments on commit 3d4db6f

Please sign in to comment.