[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#914726: statserial FTCBFS: uses the build architecture compiler for linking



Source: statserial
Version: 1.1-23
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap

statserial fails to cross build from source. Its Makefile uses the
variables CC and LD to store the compiler. dh_auto_build only supplies
CC. I propose that the Makefile should default LD to $(CC). That way,
changing just CC changes the compiler and statserial cross builds while
preserving the ability to override each individually. Please consider
applying the attached patch.

Helmut
--- statserial-1.1.orig/Makefile
+++ statserial-1.1/Makefile
@@ -1,5 +1,5 @@
 CC	= gcc
-LD	= gcc
+LD	= $(CC)
 
 # for debug
 #CFLAGS	= -Wall -g

Reply to: