Skip to content

Commit

Permalink
Ensure EXTRA_*FLAGS is properly appended after other build flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevolk committed Jan 18, 2023
1 parent 336f740 commit 6bbde81
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I tools/m4

SUBDIRS = include/ircd
SUBDIRS =#
SUBDIRS += include/ircd
SUBDIRS += ircd
SUBDIRS += matrix
SUBDIRS += modules
Expand Down
4 changes: 2 additions & 2 deletions include/ircd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ LOWMEM_FLAGS= --param ggc-min-expand=1
endif
endif

AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
CPPFLAGS += $(EXTRA_CPPFLAGS)
CXXFLAGS += $(EXTRA_CXXFLAGS)

# includedir = @includedir@/$(PACKAGE_TARNAME)
includedir = @includedir@/ircd
Expand Down
10 changes: 7 additions & 3 deletions ircd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ AM_LDFLAGS += -Wl,--enable-runtime-pseudo-reloc
AM_LDFLAGS += -export-symbols-regex '*'
endif

AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
AM_LDFLAGS += $(EXTRA_LDFLAGS)
CXXFLAGS += $(EXTRA_CXXFLAGS)
CPPFLAGS += $(EXTRA_CPPFLAGS)
LDFLAGS += $(EXTRA_LDFLAGS)

#
# libircd
#

libircddir = @libdir@
libircd_LTLIBRARIES =#
Expand Down
14 changes: 7 additions & 7 deletions matrix/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ if MINGW
AM_LDFLAGS += -Wl,--enable-runtime-pseudo-reloc
endif

AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
AM_LDFLAGS += $(EXTRA_LDFLAGS)
CXXFLAGS += $(EXTRA_CXXFLAGS)
CPPFLAGS += $(EXTRA_CPPFLAGS)
LDFLAGS += $(EXTRA_LDFLAGS)

#
# libircd_matrix
#

libircd_matrixdir = @libdir@
libircd_matrix_LTLIBRARIES =#
libircd_matrix_LTLIBRARIES += libircd_matrix.la

#
# Unit list
#

libircd_matrix_la_SOURCES =#
libircd_matrix_la_SOURCES += name.cc
libircd_matrix_la_SOURCES += id.cc
Expand Down
6 changes: 3 additions & 3 deletions modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ AM_LDFLAGS += -Wl,--no-gnu-unique
AM_LDFLAGS += -Wl,--sort-common=descending
endif

AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
AM_LDFLAGS += $(EXTRA_LDFLAGS)
CPPFLAGS += $(EXTRA_CPPFLAGS)
CXXFLAGS += $(EXTRA_CXXFLAGS)
LDFLAGS += $(EXTRA_LDFLAGS)

###############################################################################
#
Expand Down

0 comments on commit 6bbde81

Please sign in to comment.