Root/fpgatools/patches/exclude-static-libs.patch

1diff --git a/Makefile b/Makefile
2index 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 
12 uninstall:
13     @make -C libs uninstall
14diff --git a/libs/Makefile b/libs/Makefile
15index 159125a..1628cae 100644
16--- a/libs/Makefile
17+++ b/libs/Makefile
18@@ -27,7 +27,7 @@ DYNAMIC_HEADS = bit.h control.h floorplan.h helper.h model.h parts.h
19 SHARED_FLAGS = -shared -Wl,-soname,$@.$(LIBS_VERSION_MAJOR)
20 .PHONY: all clean install uninstall FAKE
21 
22-all: $(DYNAMIC_LIBS) $(DYNAMIC_LIBS:.so=.a)
23+all: $(DYNAMIC_LIBS)
24 
25 include ../Makefile.common
26 
27@@ -75,15 +75,11 @@ install: all
28     mkdir -p $(DESTDIR)/$(PREFIX)/lib/
29     install -m 644 $(DYNAMIC_HEADS) $(DESTDIR)/$(PREFIX)/include/
30     for f in $(DYNAMIC_LIBS); do \
31- chrpath -d $$f.$(LIBS_VERSION_MAJOR) && \
32       install -m 644 $$f.$(LIBS_VERSION) $(DESTDIR)/$(PREFIX)/lib/$$f.$(LIBS_VERSION) && \
33       (cd $(DESTDIR)/$(PREFIX)/lib/ && \
34        ln -sf $$f.$(LIBS_VERSION) $$f.$(LIBS_VERSION_MAJOR) && \
35        ln -sf $$f.$(LIBS_VERSION_MAJOR) $$f) \
36       || exit 1; done
37- for f in $(DYNAMIC_LIBS:.so=.a); do \
38- install -m 644 $$f $(DESTDIR)/$(PREFIX)/lib/$$f \
39- || exit 1; done
40 
41 uninstall:
42     for f in $(DYNAMIC_HEADS); do rm -f $(DESTDIR)/$(PREFIX)/include/$$f || exit 1; done
43

Archive Download this file



interactive