r1879
dslinux_amadeus at dslinux.in-berlin.de
dslinux_amadeus at dslinux.in-berlin.de
Tue Sep 11 18:19:02 CEST 2007
Author: amadeus
Date: 2007-09-11 18:18:57 +0200 (Tue, 11 Sep 2007)
New Revision: 1879
Log:
Add support for calling static constructors in C++
Modified: trunk/vendors/config/armnommu/config.arch
===================================================================
--- trunk/vendors/config/armnommu/config.arch 2007-09-11 16:16:59 UTC (rev 1878)
+++ trunk/vendors/config/armnommu/config.arch 2007-09-11 16:18:57 UTC (rev 1879)
@@ -209,12 +209,15 @@
CXXFLAGS += -nostdinc++
CXXFLAGS += -DGCC_HASCLASSVISIBILITY
CXXFLAGS += -fno-rtti
- LIBGCC:=$(shell $(CXX) $(CXXFLAGS) -print-libgcc-file-name)
+ LIBGCC :=$(shell $(CXX) $(CXXFLAGS) -print-libgcc-file-name)
LIBGCC_DIR:=$(dir $(LIBGCC))
CXXLIBS = $(CXXSUP)
CXXLIBS += -luClibc++
CXXLIBS += -L$(LIBGCC_DIR)
CXXLIBS += -lsupc++
+ # Definitions for the inclusion of static constructors
+ CRTBEGIN := $(shell $(CXX) $(CXXFLAGS) -print-file-name=crtbegin.o)
+ CRTEND := $(shell $(CXX) $(CXXFLAGS) -print-file-name=crtend.o)
endif
# be compatible for old style c++ includes
More information about the dslinux-commit
mailing list