mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 23:13:30 +08:00
6837f771ed
The static libnetlink.a library is exposed to other users in Debian via the "iproute-dev" package. Apparently people are interested in using it in their shared libraries and would like to see the code be position independent. Patch below makes the code under lib/ build with -fPIC. See http://bugs.debian.org/547602 Signed-off-by: Andreas Henriksson <andreas@fatal.se>
20 lines
341 B
Makefile
20 lines
341 B
Makefile
CFLAGS += -fPIC
|
|
|
|
UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o
|
|
|
|
NLOBJ=ll_map.o libnetlink.o
|
|
|
|
all: libnetlink.a libutil.a
|
|
|
|
libnetlink.a: $(NLOBJ)
|
|
$(AR) rcs $@ $(NLOBJ)
|
|
|
|
libutil.a: $(UTILOBJ) $(ADDLIB)
|
|
$(AR) rcs $@ $(UTILOBJ) $(ADDLIB)
|
|
|
|
install:
|
|
|
|
clean:
|
|
rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
|
|
|