zaptel-1.4.x: unbreak kernel module build, use cross-ar and cross-ranlib to fix furth...
[feed/telephony.git] / libs / zaptel-1.4.x / patches / 380-use_cross_ar.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -30,6 +30,9 @@ else
4 UNAME_M:=$(DEB_HOST_GNU_TYPE)
5 endif
6
7 +AR ?= ar
8 +RANLIB ?= ranlib
9 +
10 # If you want to build for a kernel other than the current kernel, set KVERS
11 ifndef KVERS
12 KVERS:=$(shell uname -r)
13 @@ -352,8 +355,8 @@ ztspeed: CFLAGS=
14 sethdlc-new: CFLAGS+=-I$(KINCLUDES)
15
16 $(LTZ_A): $(LTZ_A_OBJS)
17 - ar rcs $@ $^
18 - ranlib $@
19 + $(AR) rcs $@ $^
20 + $(RANLIB) $@
21
22 $(LTZ_SO): $(LTZ_SO_OBJS)
23 $(CC) $(CFLAGS) -shared -Wl,-soname,$(LTZ_SO).$(LTZ_SO_MAJOR_VER).$(LTZ_SO_MINOR_VER) -o $@ $^ $(LDFLAGS) $(LDLIBS) -lm