Source: sockstat
Version: 0.3-2
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
sockstat fails to cross build from source, because it uses the build
architecture compiler. The upstream build system hard codes the build
architecture compiler "cc". After making it substitutable, sockstat
cross builds successfully. Please consider applying the attached patch.
Helmut
--- sockstat-0.3.orig/Makefile
+++ sockstat-0.3/Makefile
@@ -2,7 +2,7 @@
OBJS = ${SRCS:.c=.o}
sockstat: ${OBJS}
- cc -o $@ $(LDFLAGS) ${OBJS}
+ $(CC) -o $@ $(LDFLAGS) ${OBJS}
install:
install -m 755 -c sockstat ${DESTDIR}/usr/bin