lrmi-0.10-ldflags.patch 934 B

123456789101112131415161718192021222324252627
  1. diff -Naurp lrmi-0.10-orig/Makefile lrmi-0.10/Makefile
  2. --- lrmi-0.10-orig/Makefile 2010-08-20 15:03:17.093144820 +0200
  3. +++ lrmi-0.10/Makefile 2010-08-20 15:03:47.761144267 +0200
  4. @@ -2,6 +2,7 @@ LIBDIR ?= /usr/local/lib
  5. INCDIR ?= /usr/local/include
  6. CFLAGS = -g -Wall
  7. +LDFLAGS =
  8. sources = lrmi.c
  9. objects = lrmi.o
  10. @@ -26,12 +27,12 @@ liblrmi.a: $(objects)
  11. liblrmi.so: $(pic_objects)
  12. # $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -o $@ $^
  13. - $(CC) $(CPPFLAGS) $(CFLAGS) -Wl,-soname,$(LIBNAME).so.$(MAJOR) -fPIC -shared -o $(LIBNAME).so.$(VERSION) $^
  14. + $(CC) $(CPPFLAGS) $(CFLAGS) -Wl,-soname,$(LIBNAME).so.$(MAJOR) $(LDFLAGS) -fPIC -shared -o $(LIBNAME).so.$(VERSION) $^
  15. ln -sf $(LIBNAME).so.$(VERSION) $(LIBNAME).so.$(MAJOR)
  16. ln -sf $(LIBNAME).so.$(MAJOR) $(LIBNAME).so
  17. vbetest: vbetest.c liblrmi.a
  18. - $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
  19. + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^
  20. install:
  21. mkdir -p $(LIBDIR)