crosstool-ng/patches/duma/2_5_8/200-separate_cpp.patch
Yann E. MORIN" 011e23d094 Add D.U.M.A. 2_5_8 and associated patches.
Fix a patch for D.U.M.A 2_5_1.
Add libelf 0.8.10, still does not build... :-(
2007-09-07 21:31:01 +00:00

20 lines
717 B
Diff

diff -durN duma_2_5_8.orig/Makefile duma_2_5_8/Makefile
--- duma_2_5_8.orig/Makefile 2007-09-07 21:57:45.000000000 +0200
+++ duma_2_5_8/Makefile 2007-09-07 21:58:35.000000000 +0200
@@ -216,9 +216,13 @@
dumatest.c tstheap.c testmt.c dumatestpp.cpp testoperators.cpp \
createconf.c
-OBJECTS = dumapp.o duma.o sem_inc.o print.o
+OBJECTS = duma.o sem_inc.o print.o
+SO_OBJECTS = duma_so.o sem_inc_so.o print_so.o
-SO_OBJECTS = dumapp_so.o duma_so.o sem_inc_so.o print_so.o
+ifeq ($(DUMA_CPP),1)
+OBJECTS += dumapp.o
+SO_OBJECTS += dumapp_so.o
+endif
all: libduma.a tstheap$(EXEPOSTFIX) dumatest$(EXEPOSTFIX) testmt$(EXEPOSTFIX) dumatestpp$(EXEPOSTFIX) testoperators$(EXEPOSTFIX) $(DUMA_DYN_DEPS)
@ $(ECHOLF)