You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
839 B
20 lines
839 B
diff -up qclib-1.3.1/Makefile.ldflags qclib-1.3.1/Makefile |
|
--- qclib-1.3.1/Makefile.ldflags 2018-03-12 10:36:52.428425169 +0100 |
|
+++ qclib-1.3.1/Makefile 2018-03-12 10:37:27.328425169 +0100 |
|
@@ -8,6 +8,7 @@ VERSION = 1.3.1 |
|
VERM = $(shell echo $(VERSION) | cut -d '.' -f 1) |
|
DOCDIR ?= /usr/share/doc/packages/ |
|
CFLAGS ?= -g -Wall -O2 |
|
+LDFLAGS ?= |
|
CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c query_capacity_ocf.c \ |
|
query_capacity_hypfs.c query_capacity_sthyi.c |
|
OBJECTS = $(patsubst %.c,%.o,$(CFILES)) |
|
@@ -38,7 +39,7 @@ libqc.a: $(OBJECTS) |
|
$(AR) rcs $@ $^ |
|
|
|
libqc.so.$(VERSION): $(OBJECTS) |
|
- $(LINK) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ |
|
+ $(LINK) $(LDFLAGS) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ |
|
-rm libqc.so.$(VERM) 2>/dev/null |
|
ln -s libqc.so.$(VERSION) libqc.so.$(VERM) |
|
|
|
|