Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
build: Enable linux 32-bit builds with ASFLAGS
Browse files Browse the repository at this point in the history
Change-Id: Ic88fdb9d6c0f23a0b345c82852826a9c1abb8097
  • Loading branch information
lenny-lunarg committed Jun 16, 2017
1 parent 1c20b65 commit 58165eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ This list may vary depending on your distro and which windowing systems you are
Set up your environment for building 32-bit targets:

```
export ASFLAGS=--32
export CFLAGS=-m32
export CXXFLAGS=-m32
export PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu
Expand Down
1 change: 1 addition & 0 deletions loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ else()
if (CMAKE_ASM-ATT_COMPILER_WORKS)
set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} phys_dev_chain_gas.asm)

set(CMAKE_ASM-ATT_FLAGS "${CMAKE_ASM-ATT_FLAGS} $ENV{ASFLAGS}")
set(CMAKE_ASM-ATT_FLAGS "${CMAKE_ASM-ATT_FLAGS} -I${CMAKE_CURRENT_BINARY_DIR}")
add_executable(asm_offset asm_offset.c)
add_dependencies(asm_offset generate_helper_files loader_gen_files)
Expand Down

0 comments on commit 58165eb

Please sign in to comment.