Permalink
Browse files

Add support to alternatively build against Gnu libc

  • Loading branch information...
1 parent 65f4125 commit 11ebdf20f8aae04db52a5af97c82135804f90444 Jeremy Raymond committed with Anthony Hu Apr 20, 2012
Showing with 11 additions and 0 deletions.
  1. +6 −0 README.md
  2. +5 −0 common.mk
View
@@ -16,6 +16,12 @@ Note there is no official owner for this project. Instead, this project will use
4. This will produce a library for the selected configuration (e.g. libcppunit.so).
5. Programs that use cppunit will need to include the path to the include directory (cppunit/include) as well as the
path to the library in their project files.
+
+### Gnu libc
+
+To build against GNU libc instead of the default Dinkumware libc, define the GNULIBC=yes macro in the build. For example from the command line
+
+ make GNULIBC=yes
### Notes
View
@@ -25,6 +25,11 @@ PINFO DESCRIPTION=CppUnit library
endef
INSTALLDIR=usr/lib
+ifeq ($(GNULIBC),yes)
+ CCFLAGS += -Y_gpp
+ LDFLAGS += -Y_gpp
+endif
+
include $(MKFILES_ROOT)/qtargets.mk
#####################################

0 comments on commit 11ebdf2

Please sign in to comment.