about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-08 02:33:14 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-08 02:33:14 +0000
commit28e055cc0127086d908bfd6505ecd2509e5c9d89 (patch)
treed5e897f2f9f1693085e0b47cdc2152455ba98873
parent0cc369d1c1ecd9e7d36a712f7b741d5a46722736 (diff)
downloadnetpbm-mirror-28e055cc0127086d908bfd6505ecd2509e5c9d89.tar.gz
netpbm-mirror-28e055cc0127086d908bfd6505ecd2509e5c9d89.tar.xz
netpbm-mirror-28e055cc0127086d908bfd6505ecd2509e5c9d89.zip
Use AR make variable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@986 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-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.