Сталкивался ли кто с проблемой отсутствия в результирующем коде вызова глобальных конструкторов по умолчанию (C++)? Исполняемый файл работает, только нет конструкторов, что очень затрудняет жизнь.
Опции сборки:
Код
# Place -D or -U options here for C++ sources
CPPDEFS = -Dlinux
CPPDEFS += -D__linux__
CPPDEFS += -Dunix
CPPDEFS += -D__uClinux__
CPPDEFS += -DEMBED
#CPPDEFS += -pthread
#---------------- Compiler Options C++ ----------------
# -g*: generate debugging information
# -O*: optimization level
# -f...: tuning, see GCC manual and libc documentation
# -Wall...: warning level
# -Wa,...: tell GCC to pass this to the assembler.
CPPFLAGS = $(CPPDEFS)
CPPFLAGS += -O$(OPT)
CPPFLAGS += -msoft-float
CPPFLAGS += -fomit-frame-pointer
CPPFLAGS += -fno-common
CPPFLAGS += -fno-builtin
#CPPFLAGS += -fpack-struct=1
CPPFLAGS += -Wall
#---------------- Linker Options ----------------
LDFLAGS = -lpthread
LDFLAGS += -Wl,-Map=$(TARGET).map
LDFLAGS += -Wl,-elf2flt="-r"
CPPDEFS = -Dlinux
CPPDEFS += -D__linux__
CPPDEFS += -Dunix
CPPDEFS += -D__uClinux__
CPPDEFS += -DEMBED
#CPPDEFS += -pthread
#---------------- Compiler Options C++ ----------------
# -g*: generate debugging information
# -O*: optimization level
# -f...: tuning, see GCC manual and libc documentation
# -Wall...: warning level
# -Wa,...: tell GCC to pass this to the assembler.
CPPFLAGS = $(CPPDEFS)
CPPFLAGS += -O$(OPT)
CPPFLAGS += -msoft-float
CPPFLAGS += -fomit-frame-pointer
CPPFLAGS += -fno-common
CPPFLAGS += -fno-builtin
#CPPFLAGS += -fpack-struct=1
CPPFLAGS += -Wall
#---------------- Linker Options ----------------
LDFLAGS = -lpthread
LDFLAGS += -Wl,-Map=$(TARGET).map
LDFLAGS += -Wl,-elf2flt="-r"