Source: udt
Version: 4.11+dfsg1-1.1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
udt fails to cross build from source, because it uses the variable name
C++ for the C++ compiler. While that may sound like a good name, the
rest of the world settled on CXX and that's what dh_auto_build passes.
Please consider applying the attached patch to rename it.
Helmut
--- udt-4.11+dfsg1.orig/app/Makefile
+++ udt-4.11+dfsg1/app/Makefile
@@ -1,4 +1,4 @@
-C++ = g++
+CXX = g++
ifndef os
os = LINUX
@@ -43,18 +43,18 @@
all: $(APP)
%.o: %.cpp
- $(C++) $(CCFLAGS) $< -c
+ $(CXX) $(CCFLAGS) $< -c
appserver: appserver.o
- $(C++) $^ -o $@ $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
appclient: appclient.o
- $(C++) $^ -o $@ $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
sendfile: sendfile.o
- $(C++) $^ -o $@ $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
recvfile: recvfile.o
- $(C++) $^ -o $@ $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
test: test.o
- $(C++) $^ -o $@ $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
clean:
rm -f *.o $(APP)
--- udt-4.11+dfsg1.orig/src/Makefile
+++ udt-4.11+dfsg1/src/Makefile
@@ -1,4 +1,4 @@
-C++ = g++
+CXX = g++
ifndef os
os = LINUX
@@ -36,13 +36,13 @@
all: libudt.so libudt.a udt
%.o: %.cpp %.h udt.h
- $(C++) $(CCFLAGS) $< -c
+ $(CXX) $(CCFLAGS) $< -c
libudt.so: $(OBJS)
ifneq ($(os), OSX)
- $(C++) -shared -lpthread -Wl,-soname,libudt.so.0 -o $@ $^
+ $(CXX) -shared -lpthread -Wl,-soname,libudt.so.0 -o $@ $^
else
- $(C++) -dynamiclib -o libudt.dylib -lstdc++ -lpthread -lm $^
+ $(CXX) -dynamiclib -o libudt.dylib -lstdc++ -lpthread -lm $^
endif
libudt.a: $(OBJS)