aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-02 15:11:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-02 15:11:02 +0200
commit7259c8f9b367cb0f468f701663ace9ac50e47198 (patch)
tree27765b4fd4b2a08430c73da5a6b71e82b43179f1
parent303d1661cd524781900a67249867ade926c82206 (diff)
Add support for the AR and RANLIB make variables
-rw-r--r--README2
-rw-r--r--libcutl/build/ld/configuration-lib-dynamic.make10
2 files changed, 12 insertions, 0 deletions
diff --git a/README b/README
index 2b215ad..75f5128 100644
--- a/README
+++ b/README
@@ -22,6 +22,8 @@ CPPFLAGS
CXXFLAGS
LDFALGS
LIBS
+AR (defaults to ar if not set)
+RANLIB (defaults to ranlib if not set)
For example:
diff --git a/libcutl/build/ld/configuration-lib-dynamic.make b/libcutl/build/ld/configuration-lib-dynamic.make
index c2c560c..74c8885 100644
--- a/libcutl/build/ld/configuration-lib-dynamic.make
+++ b/libcutl/build/ld/configuration-lib-dynamic.make
@@ -1,3 +1,13 @@
ld_lib_type := archive
+
+ifneq ($(AR),)
+ld_lib_ar := $(AR)
+else
ld_lib_ar := ar
+endif
+
+ifneq ($(RANLIB),)
+ld_lib_ranlib := $(RANLIB)
+else
ld_lib_ranlib := ranlib
+endif