[iw] Update iw to version 0.9.13.
[openwrt.git] / package / libnl / patches / 100-static.patch
1 --- a/lib/Makefile
2 +++ b/lib/Makefile
3 @@ -36,6 +36,7 @@ CFLAGS += -fPIC
4 OUT_SLIB := $(PACKAGE_NAME).so.$(PACKAGE_VERSION)
5 LN_SLIB := $(PACKAGE_NAME).so
6 LN1_SLIB := $(LN_SLIB).1
7 +OUT_ALIB := $(PACKAGE_NAME).a
8
9 export
10
11 @@ -44,7 +45,7 @@ export
12
13 all:
14 @echo " MAKE $(OUT_SLIB)"; \
15 - $(MAKE) $(OUT_SLIB)
16 + $(MAKE) $(OUT_SLIB) $(OUT_ALIB)
17
18 $(OUT_SLIB): ../Makefile.opts $(OBJ)
19 @echo " LD $(OUT_SLIB)"; \
20 @@ -54,10 +55,15 @@ $(OUT_SLIB): ../Makefile.opts $(OBJ)
21 @echo " LN $(LN1_SLIB) $(LN_SLIB)"; \
22 rm -f $(LN_SLIB) ; $(LN) -s $(LN1_SLIB) $(LN_SLIB)
23
24 +$(OUT_ALIB): ../Makefile.opts $(OBJ)
25 + @echo " AR $@"; \
26 + $(AR) rcu $@ $(OBJ); \
27 + $(RANLIB) $@
28 +
29 clean:
30 @echo " CLEAN lib"; \
31 $(RM) -f $(OBJ) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB); \
32 - $(RM) -f $(DEPS) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB)
33 + $(RM) -f $(DEPS) $(OUT_ALIB) $(LN_SLIB) $(LN1_SLIB)
34
35 distclean:
36 @echo " DISTCLEAN lib"; \
37 @@ -66,6 +72,7 @@ distclean:
38 install:
39 mkdir -p $(DESTDIR)$(libdir)/
40 install -m 0644 $(OUT_SLIB) $(DESTDIR)$(libdir)
41 + install -m 0644 $(OUT_ALIB) $(DESTDIR)$(libdir)
42 rm -f $(DESTDIR)$(libdir)/$(LN1_SLIB)
43 $(LN) -s $(OUT_SLIB) $(DESTDIR)$(libdir)/$(LN1_SLIB)
44 rm -f $(DESTDIR)$(libdir)/$(LN_SLIB)
This page took 0.037957 seconds and 5 git commands to generate.