diff -Naur unrar.orig/makefile.unix unrar/makefile.unix
--- unrar.orig/makefile.unix	2005-05-27 21:53:56.000000000 +0000
+++ unrar/makefile.unix	2005-05-27 21:54:16.000000000 +0000
@@ -7,7 +7,7 @@
 
 # Linux using GCC
 CXX=g++
-CXXFLAGS=-O2
+CXXFLAGS=${CFLAGS}
 DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 STRIP=strip