 diff --git a/src/Makefile b/src/Makefile
-index d22eb73..6a74228 100644
---- a/luajit-2.0/src/Makefile
-+++ b/luajit-2.0/src/Makefile
-@@ -214,7 +214,8 @@ TARGET_STCC= $(STATIC_CC)
+index 702207c..50e1c23 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -211,7 +211,8 @@ TARGET_CC= $(STATIC_CC)
+ TARGET_STCC= $(STATIC_CC)
  TARGET_DYNCC= $(DYNAMIC_CC)
  TARGET_LD= $(CROSS)$(CC)
- TARGET_AR= $(CROSS)ar rcus
--TARGET_STRIP= $(CROSS)strip
+-TARGET_AR= $(CROSS)ar rcus 2>/dev/null
++TARGET_AR= $(CROSS)ar rcus
 +TARGET_RANLIB= $(CROSS)ranlib
-+TARGET_STRIP= $(CROSS)strip --strip-unneeded
+ TARGET_STRIP= $(CROSS)strip
  
  TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
- TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
-@@ -634,7 +635,7 @@ depend:
+@@ -343,6 +344,7 @@ else
+   endif
+   ifeq (Linux,$(TARGET_SYS))
+     TARGET_XLIBS+= -ldl
++    TARGET_STRIP+= --strip-unneeded
+   endif
+   ifeq (GNU/kFreeBSD,$(TARGET_SYS))
+     TARGET_XLIBS+= -ldl
+@@ -632,7 +634,7 @@ depend:
  
  $(MINILUA_T): $(MINILUA_O)
  	$(E) "HOSTLINK  $@"

 
 $(LJVM_BOUT): $(BUILDVM_T)
 	$(E) "BUILDVM   $@"
@@ -705,16 +706,17 @@ include Makefile.dep
 $(LUAJIT_A): $(LJVMCORE_O)
 	$(E) "AR        $@"
 	$(Q)$(TARGET_AR) $@ $(LJVMCORE_O)

 
 host/buildvm_arch.h: $(DASM_DASC) $(DASM_DEP) $(DASM_DIR)/*.lua
 	$(E) "DYNASM    $@"
@@ -642,7 +644,7 @@ host/buildvm.o: $(DASM_DIR)/dasm_*.h
 
 $(BUILDVM_T): $(BUILDVM_O)
 	$(E) "HOSTLINK  $@"
