diff --git a/Makefile b/Makefile index 1223e912..0a7d17f1 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ include $(OPTIONS) #Compilers. REALCC = $(CROSS_PREFIX)$(CC) REALLD = $(CROSS_PREFIX)$(LD) +REALRANLIB = $(CROSS_PREFIX)$(RANLIB) BSNES_PATH=$(shell pwd)/bsnes @@ -52,8 +53,9 @@ endif bsnes_compiler=$(subst ++,cc,$(REALCC)) -bsnes/out/libsnes.$(ARCHIVE_SUFFIX): bsnes/snes/snes.hpp +bsnes/out/libsnes.$(ARCHIVE_SUFFIX): bsnes/snes/snes.hpp forcelook $(MAKE) -C bsnes OPTIONS=debugger $(BSNES_PROFILE_STRING) $(BSNES_TARGET_STRING) compiler=$(bsnes_compiler) + $(REALRANLIB) $@ src/__all_files__: src/core/version.cpp forcelook bsnes/out/libsnes.$(ARCHIVE_SUFFIX) $(MAKE) -C src precheck diff --git a/options.build b/options.build index 787b6e63..af91ea51 100644 --- a/options.build +++ b/options.build @@ -27,6 +27,10 @@ CC=g++-4.6 # CROSS_PREFIX is prepended to this. LD=ld +# Ranlib for target system. +# CROSS_PREFIX is prepended to this. +RANLIB=ranlib + # Host system C++ compiler. # If not crosscompiling, build host system and target system are one and the same. # $(CC) means the same compiler as main C++ compiler to use (but without prefix). Otherwise, set to host C++ compiler.