aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-08 10:13:03 +0000
committerlloyd <[email protected]>2006-09-08 10:13:03 +0000
commite1fd01459053560c5cc3c2591afb88d49f6cc8b5 (patch)
treec5e566fe3c12dbcf71795a9d5416edee945c0562 /misc
parent3461ac347fa26376abcda48b281ea2438a2e0f77 (diff)
Fix handling for systems that need to run ranlib on static libraries.
Diffstat (limited to 'misc')
-rw-r--r--misc/config/makefile/unix.in3
-rw-r--r--misc/config/makefile/unix_shr.in3
2 files changed, 4 insertions, 2 deletions
diff --git a/misc/config/makefile/unix.in b/misc/config/makefile/unix.in
index 773fda58d..9f83c0970 100644
--- a/misc/config/makefile/unix.in
+++ b/misc/config/makefile/unix.in
@@ -46,7 +46,7 @@ INSTALL_CMD_DATA = @{var:install_cmd_data}
LN = ln -fs
MKDIR = @mkdir
MKDIR_INSTALL = @umask 022; mkdir -p -m $(EXEC_MODE)
-RANLIB = @ranlib
+RANLIB = @{var:ranlib_command}
RM = @rm -f
RM_R = @rm -rf
@@ -89,6 +89,7 @@ $(CHECK): $(LIBRARIES) $(CHECKOBJS)
$(STATIC_LIB): $(LIBOBJS)
$(RM) $(STATIC_LIB)
$(AR) $(STATIC_LIB) $(LIBOBJS)
+ $(RANLIB) $(STATIC_LIB)
##################################################
# Fake Targets #
diff --git a/misc/config/makefile/unix_shr.in b/misc/config/makefile/unix_shr.in
index 9e8d54eec..30cf70538 100644
--- a/misc/config/makefile/unix_shr.in
+++ b/misc/config/makefile/unix_shr.in
@@ -48,7 +48,7 @@ INSTALL_CMD_DATA = @{var:install_cmd_data}
LN = ln -fs
MKDIR = @mkdir
MKDIR_INSTALL = @umask 022; mkdir -p -m $(EXEC_MODE)
-RANLIB = @ranlib
+RANLIB = @{var:ranlib_command}
RM = @rm -f
RM_R = @rm -rf
@@ -96,6 +96,7 @@ $(CHECK): $(LIBRARIES) $(CHECKOBJS)
$(STATIC_LIB): $(LIBOBJS)
$(RM) $(STATIC_LIB)
$(AR) $(STATIC_LIB) $(LIBOBJS)
+ $(RANLIB) $(STATIC_LIB)
$(SHARED_LIB): $(LIBOBJS)
$(SO_LINK_CMD) $(LINK_TO) $(LIBOBJS) -o $(SHARED_LIB)