about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/jpeg2000/libjasper/Makefile2
-rw-r--r--doc/HISTORY3
-rw-r--r--lib/Makefile2
-rw-r--r--urt/Makefile2
4 files changed, 6 insertions, 3 deletions
diff --git a/converter/other/jpeg2000/libjasper/Makefile b/converter/other/jpeg2000/libjasper/Makefile
index 34d1860a..ddbd148a 100644
--- a/converter/other/jpeg2000/libjasper/Makefile
+++ b/converter/other/jpeg2000/libjasper/Makefile
@@ -25,6 +25,6 @@ include $(SRCDIR)/$(SUBDIR)/common.mk
 # looks like dependencies were rebuilt and libjasper.a gets rebuilt every
 # time.
 libjasper.a: $(SUBDIRS:%=%/all) partlist 
-	ar rc $@ $(shell cat partlist)
+	$(AR) rc $@ $(shell cat partlist)
 	$(RANLIB) $@
 
diff --git a/doc/HISTORY b/doc/HISTORY
index 545b7c5e..82963fb2 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -29,6 +29,9 @@ not yet  BJH  Release 10.48.00
               Add pbmtocis, cistopbm.  Thanks John Elliott
               <jce@seasip.demon.co.uk>.
 
+              Build: use AR from config.mk instead of "ar" to build static
+              libraries: libnetpbm, librle, libjasper.
+
               Build: tifftopnm builds on systems without fork().
 
               Build: work with JPEG library Version 7.
diff --git a/lib/Makefile b/lib/Makefile
index 6f2e7383..5632b8f0 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -177,7 +177,7 @@ endif
 ifeq ($(BUILD_STATICLIB),y)
 libnetpbm.$(STATICLIBSUFFIX): $(LIBOBJECTS) $(LIBOBJECTS_X)
 	-rm -f $@
-	ar rc $@ $(LIBOBJECTS) $(LIBOBJECTS_X)
+	$(AR) rc $@ $(LIBOBJECTS) $(LIBOBJECTS_X)
 	-$(RANLIB) $@
 endif
 
diff --git a/urt/Makefile b/urt/Makefile
index b9eacaf9..57543b0c 100644
--- a/urt/Makefile
+++ b/urt/Makefile
@@ -19,7 +19,7 @@ all: librle.a
 
 librle.a: $(LIBOBJECTS)
 	rm -f $@
-	ar rc $@ $^
+	$(AR) rc $@ $^
 	$(RANLIB) $@
 
 # Rule for objects.