Blame SOURCES/bibutils-LDFLAGS.patch

572e9d
diff -up bibutils_6.5/bin/Makefile~ bibutils_6.5/bin/Makefile
572e9d
--- bibutils_6.5/bin/Makefile.dynamic~	2018-06-29 17:42:26.485528548 +0900
572e9d
+++ bibutils_6.5/bin/Makefile.dynamic	2018-06-29 18:02:55.305754734 +0900
572e9d
@@ -5,7 +5,7 @@
572e9d
 #
572e9d
 
572e9d
 CFLAGS     = -I ../lib $(CFLAGSIN)
572e9d
-LDFLAGS    = -L ../lib
572e9d
+LDFLAGS    = -L ../lib $(LDFLAGSIN)
572e9d
 LDLIBS     = -lbibutils
572e9d
 
572e9d
 TOMODS     = bibprog.o tomods.o args.o
572e9d
diff -up bibutils_6.5/lib/Makefile~ bibutils_6.5/lib/Makefile
572e9d
--- bibutils_6.5/lib/Makefile.dynamic~	2018-06-29 17:42:26.484528544 +0900
572e9d
+++ bibutils_6.5/lib/Makefile.dynamic	2018-06-29 18:01:03.557281315 +0900
572e9d
@@ -1,4 +1,5 @@
572e9d
 CFLAGS    = $(CFLAGSIN)
572e9d
+LDFLAGS   = $(LDFLAGSIN)
572e9d
 LIBTARGET = $(LIBTARGETIN)
572e9d
 
572e9d
 SIMPLE_OBJS   = charsets.o \
572e9d
@@ -75,12 +76,12 @@ all: $(LIBTARGET)
572e9d
 	$(CC) $(CFLAGS) -c -o $@ $<
572e9d
 
572e9d
 libbibutils.so: $(BIBCORE_OBJS) $(BIBUTILS_OBJS)
572e9d
-	$(CC) -shared -Wl,-soname,$(SONAME) -o $(SOFULL) $^
572e9d
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $(SOFULL) $^
572e9d
 	ln -sf $(SOFULL) $(SONAME)
572e9d
 	ln -sf $(SOFULL) libbibutils.so
572e9d
 
572e9d
 bibutils.dll: $(BIBCORE_OBJS) $(BIBUTILS_OBJS)
572e9d
-	$(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^
572e9d
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $^
572e9d
 	cp $@ ../bin
572e9d
 	cp $@ ../test
572e9d
 
572e9d
diff -up bibutils_6.5/test/Makefile~ bibutils_6.5/test/Makefile
572e9d
--- bibutils_6.5/test/Makefile.dynamic~	2018-06-29 17:42:26.486528552 +0900
572e9d
+++ bibutils_6.5/test/Makefile.dynamic	2018-06-29 18:01:21.021355301 +0900
572e9d
@@ -3,7 +3,7 @@
572e9d
 #
572e9d
 
572e9d
 CFLAGS   = -I ../lib $(CFLAGSIN)
572e9d
-LDFLAGS  = -L ../lib
572e9d
+LDFLAGS  = -L ../lib $(LDFLAGSIN)
572e9d
 LDLIBS   = -lbibutils
572e9d
 
572e9d
 PROGS    = doi_test \