2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>

* custom/Linux-posix.cfg: Make Linux link with just a C main -- avoid
	using C++ ctor trick. An RTEMS C++ application running on this BSP
	may have initialization order issues to address.
This commit is contained in:
Joel Sherrill
2007-07-24 20:50:35 +00:00
parent 59aea5d592
commit 14ee224c00
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* custom/Linux-posix.cfg: Make Linux link with just a C main -- avoid
using C++ ctor trick. An RTEMS C++ application running on this BSP
may have initialization order issues to address.
2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* custom/Linux-posix.cfg: Linux BSP must be linked with C++ compiler.

View File

@@ -22,7 +22,7 @@ CPU_CFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE
CFLAGS_OPTIMIZE_V = -O0 -g
define make-exe
$(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef