aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-02 15:13:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-02 15:13:26 +0200
commitaae221319da1c05a239032d7941d680249aa8858 (patch)
treeccd06f851d3f6d8b54189625c768fa206ca04830
parent35dbe932dd6d8c4d11009131df425d04814ec0ad (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 8e64009..639a561 100644
--- a/README
+++ b/README
@@ -21,6 +21,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