diff options
author | Jason Parker <jparker@digium.com> | 2013-01-30 15:03:11 -0600 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-03-11 15:10:48 -0500 |
commit | 3f5b7864df62674298e5c8cd2a5061f2af75ac03 (patch) | |
tree | b678cfcfe3dea0cd361a12bb78320fc0f893434a /build | |
parent | 483805f79570115ab95c69698792d238c1719b1b (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')
-rw-r--r-- | build/cc-auto.mak.in | 1 | ||||
-rw-r--r-- | build/rules.mak | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/build/cc-auto.mak.in b/build/cc-auto.mak.in index bc56567..2530e21 100644 --- a/build/cc-auto.mak.in +++ b/build/cc-auto.mak.in @@ -1,6 +1,7 @@ export CC = @CC@ -c export CXX = @CXX@ -c export AR = @AR@ +export AR_FLAGS = @AR_FLAGS@ export LD = @LD@ export LDOUT = -o export RANLIB = @RANLIB@ 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) |