diff --git a/CMakeLists.txt b/CMakeLists.txt index 7aec9fa..f4becb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,4 +9,6 @@ set(SOURCE_FILES add_executable(extract-xiso ${SOURCE_FILES}) target_compile_definitions(extract-xiso PRIVATE ${TARGET_OS}) +target_compile_options(extract-xiso PUBLIC -m32) +target_link_options(extract-xiso PUBLIC -m32) install(TARGETS extract-xiso RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") diff --git a/README.md b/README.md index 0b7e18e..35430ce 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,17 @@ Extract XISO contents to a directory. - make - gcc +### Linux Distribution Requirements + + #### Fedora + ``` +sudo dnf install cmake gcc gcc-c++ glibc-devel.i686 git -y +``` + #### Ubuntu + ``` +sudo apt install gcc-multilib build-essential git -y +``` + ### Windows / macOS / Linux After requirements are installed with your distribution's package manager (or homebrew for macOS), open terminal and change directory to the project root. Then run the following build commands: