netsnmp: handle libnl dependency properly
[buildroot-gz.git] / package / libselinux / 0003-revert-ln-relative.patch
blobb8ad07000aece58d5738e6fe812dd8b2574ae7a8
1 Makefile: revert libselinux: use ln --relative to create .so symlinks
3 This reverts 71393a181d63c9baae5fe8dcaeb9411d1f253998
5 ln --relative is too recent to be available in all distributions,
6 especially enterprise-grade distros that can stick around as long as
7 they are maintained (up to 10 years in some cases?).
9 For the sake of Buildroot, revert the upstream patch.
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
13 diff -durN a/src/Makefile b/src/Makefile
14 --- a/src/Makefile
15 +++ b/src/Makefile
16 @@ -151,7 +151,7 @@
17 install -m 755 $(LIBSO) $(SHLIBDIR)
18 test -d $(LIBDIR)/pkgconfig || install -m 755 -d $(LIBDIR)/pkgconfig
19 install -m 644 $(LIBPC) $(LIBDIR)/pkgconfig
20 - ln -sf --relative $(SHLIBDIR)/$(LIBSO) $(LIBDIR)/$(TARGET)
21 + cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
23 install-pywrap: pywrap
24 test -d $(PYLIBDIR)/site-packages/selinux || install -m 755 -d $(PYLIBDIR)/site-packages/selinux