set(LibArchive_ROOT_			"/opt/libarchive" CACHE PATH "")
set(ZLIB_ROOT_				"/opt/zlib" CACHE PATH "")

set(LibArchive_INCLUDEDIR		${LibArchive_ROOT_}/include CACHE STRING "")
set(LibArchive_LIBRARYDIR		${LibArchive_ROOT_}/lib32 CACHE STRING "")

set(ZLIB_INCLUDEDIR			${ZLIB_ROOT_}/include CACHE STRING "")
set(ZLIB_LIBRARYDIR			${ZLIB_ROOT_}/lib32 CACHE STRING "")

set(CMAKE_C_FLAGS                       -m32 CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS                     ${CMAKE_C_FLAGS_RELEASE} CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS           -m32 CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS              -m32 CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS           -m32 CACHE STRING "" FORCE)

set(CMAKE_C_FLAGS_RELEASE               "-Wall -O3 -pipe -march=prescott -m32 -fvisibility=hidden" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE             ${CMAKE_C_FLAGS_RELEASE} CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE   -m32 CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE	-m32 CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE   -m32 CACHE STRING "" FORCE)

set(BUILD_STATIC_EXECUTABLE		ON CACHE BOOL "")
set(CMAKE_BUILD_TYPE			Release CACHE STRING "")
set(FIND_LIBRARY_USE_LIB64_PATHS	OFF CACHE BOOL "")
