exclude-static-libs.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff --git a/Makefile b/Makefile
  2. index 1aed6d1..a44dbe0 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -245,8 +245,6 @@ install: fp2bit bit2fp
  6. mkdir -p $(DESTDIR)/$(PREFIX)/bin/
  7. install -m 755 fp2bit $(DESTDIR)/$(PREFIX)/bin/
  8. install -m 755 bit2fp $(DESTDIR)/$(PREFIX)/bin/
  9. - chrpath -d $(DESTDIR)/$(PREFIX)/bin/fp2bit
  10. - chrpath -d $(DESTDIR)/$(PREFIX)/bin/bit2fp
  11. uninstall:
  12. @make -C libs uninstall
  13. diff --git a/libs/Makefile b/libs/Makefile
  14. index 159125a..1628cae 100644
  15. --- a/libs/Makefile
  16. +++ b/libs/Makefile
  17. @@ -27,7 +27,7 @@ DYNAMIC_HEADS = bit.h control.h floorplan.h helper.h model.h parts.h
  18. SHARED_FLAGS = -shared -Wl,-soname,$@.$(LIBS_VERSION_MAJOR)
  19. .PHONY: all clean install uninstall FAKE
  20. -all: $(DYNAMIC_LIBS) $(DYNAMIC_LIBS:.so=.a)
  21. +all: $(DYNAMIC_LIBS)
  22. include ../Makefile.common
  23. @@ -75,15 +75,11 @@ install: all
  24. mkdir -p $(DESTDIR)/$(PREFIX)/lib/
  25. install -m 644 $(DYNAMIC_HEADS) $(DESTDIR)/$(PREFIX)/include/
  26. for f in $(DYNAMIC_LIBS); do \
  27. - chrpath -d $$f.$(LIBS_VERSION_MAJOR) && \
  28. install -m 644 $$f.$(LIBS_VERSION) $(DESTDIR)/$(PREFIX)/lib/$$f.$(LIBS_VERSION) && \
  29. (cd $(DESTDIR)/$(PREFIX)/lib/ && \
  30. ln -sf $$f.$(LIBS_VERSION) $$f.$(LIBS_VERSION_MAJOR) && \
  31. ln -sf $$f.$(LIBS_VERSION_MAJOR) $$f) \
  32. || exit 1; done
  33. - for f in $(DYNAMIC_LIBS:.so=.a); do \
  34. - install -m 644 $$f $(DESTDIR)/$(PREFIX)/lib/$$f \
  35. - || exit 1; done
  36. uninstall:
  37. for f in $(DYNAMIC_HEADS); do rm -f $(DESTDIR)/$(PREFIX)/include/$$f || exit 1; done