Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
The variable OBJARCH was used to compile objects for both 32-bit and
64-bit architectures. It can be removed because this is only relevant
for the Ruby wrapper for hiredis. This wrapper should put these flags in
CFLAGS to get the same effect.
  • Loading branch information
pietern committed Jun 18, 2011
1 parent 0c2de25 commit b8e0eda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -35,7 +35,6 @@ ifeq ($(uname_S),SunOS)
INSTALL= cp -r
endif
ifeq ($(uname_S),Darwin)
OBJARCH?=-arch i386 -arch x86_64
DYLIBSUFFIX=dylib
STLIBSUFFIX=a
DYLIB_MINOR_NAME=$(LIBNAME).$(HIREDIS_MAJOR).$(HIREDIS_MINOR).$(DYLIBSUFFIX)
Expand Down Expand Up @@ -100,7 +99,7 @@ check: hiredis-test
kill `cat /tmp/hiredis-test-redis.pid`

.c.o:
$(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $(OBJARCH) $(COMPILE_TIME) $<
$(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<

clean:
rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov
Expand Down

0 comments on commit b8e0eda

Please sign in to comment.