mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Allow C++ source files (as extension .cc) in the main directory
Although C++ files (as extension .cc) have been handled in the module
directories for many years, the main directory was missing one line in its
Makefile that prevented C++ files from being recognised there.
(cherry picked from commit ab820f6121
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e9373e9833
commit
bb8b91386a
@@ -31,7 +31,8 @@ ifeq ($(PJPROJECT_BUNDLED),yes)
|
|||||||
SRC:=$(filter-out libasteriskpj.c,$(SRC))
|
SRC:=$(filter-out libasteriskpj.c,$(SRC))
|
||||||
endif
|
endif
|
||||||
OBJSFILTER:=$(MOD_OBJS) fskmodem_int.o fskmodem_float.o cygload.o buildinfo.o
|
OBJSFILTER:=$(MOD_OBJS) fskmodem_int.o fskmodem_float.o cygload.o buildinfo.o
|
||||||
OBJS=$(filter-out $(OBJSFILTER),$(SRC:.c=.o))
|
SRC_CC:=$(wildcard *.cc)
|
||||||
|
OBJS=$(filter-out $(OBJSFILTER),$(SRC:.c=.o) $(SRC_CC:.cc=.oo))
|
||||||
|
|
||||||
# we need to link in the objects statically, not as a library, because
|
# we need to link in the objects statically, not as a library, because
|
||||||
# otherwise modules will not have them available if none of the static
|
# otherwise modules will not have them available if none of the static
|
||||||
|
Reference in New Issue
Block a user