Source: niceshaper Version: 1.2.3-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
niceshaper fails to cross build from source, because make install relinks the main executable with the build architecture compiler. Such relinking is unnecessary and happens due to suboptimal makefile rules. The attached patch adjusts the rules, prevents the unnecessary relinking and makes niceshaper cross buildable. Please consider applying it. Helmut
--- niceshaper-1.2.4.orig/src/Makefile +++ niceshaper-1.2.4/src/Makefile @@ -10,7 +10,8 @@ .cc.o: $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -all: $(OBJS) +all: $(TARGET) +$(TARGET): $(OBJS) $(CXX) $(OBJS) $(LDFLAGS) -o $(TARGET) clean: --- niceshaper-1.2.4.orig/Makefile +++ niceshaper-1.2.4/Makefile @@ -15,7 +15,7 @@ @echo "# Compiling" @echo "###" $(MAKE) -C src - mv src/$(TARGET) $(TARGET) + cp -a src/$(TARGET) $(TARGET) install: all @echo "####################"