summaryrefslogtreecommitdiff
path: root/build/rules.mak
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-01-30 15:03:11 -0600
committerJason Parker <jparker@digium.com>2013-03-11 15:10:48 -0500
commit3f5b7864df62674298e5c8cd2a5061f2af75ac03 (patch)
treeb678cfcfe3dea0cd361a12bb78320fc0f893434a /build/rules.mak
parent483805f79570115ab95c69698792d238c1719b1b (diff)
Remove workarounds for cross-compiling. Search for ar and ranlib.
Use the methods that autoconf gives us to find ar/ranlib, rather than trying to guess based on the compiler used.
Diffstat (limited to 'build/rules.mak')
-rw-r--r--build/rules.mak3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/rules.mak b/build/rules.mak
index 0d35c56..15ae667 100644
--- a/build/rules.mak
+++ b/build/rules.mak
@@ -72,6 +72,7 @@ print_common:
@echo DEPFLAGS=$(DEPFLAGS)
@echo CC=$(CC)
@echo AR=$(AR)
+ @echo AR_FLAGS=$(AR_FLAGS)
@echo RANLIB=$(RANLIB)
print_bin: print_common
@@ -84,7 +85,7 @@ print_lib: print_common
$(LIB): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)
if test ! -d $(LIBDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)),$(HOST_MKDIR)); fi
- $(AR) $(LIB) $(OBJS)
+ $(AR) $(AR_FLAGS) $(LIB) $(OBJS)
$(RANLIB) $(LIB)
$(SHLIB): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP)