Skip to content

Commit

Permalink
32-bit/64-bit Makefile fix
Browse files Browse the repository at this point in the history
Counter intuitively, make build ARCH=x86-32 does NOT produce a 32-bit compile
when running a 64-bit OS. Nor would ARCH=x86-64 produce a 64-bit compile when
running a 32-bit OS (assuming it compiled w/o errors).

No functional change

Resolves #621
  • Loading branch information
lucasart authored and zamar committed Apr 8, 2016
1 parent d5b24ad commit 900279a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Makefile
Expand Up @@ -145,7 +145,7 @@ endif
ifeq ($(COMP),gcc)
comp=gcc
CXX=g++
CXXFLAGS += -pedantic -Wextra -Wshadow
CXXFLAGS += -pedantic -Wextra -Wshadow -m$(bits)
ifneq ($(UNAME),Darwin)
LDFLAGS += -Wl,--no-as-needed
endif
Expand Down Expand Up @@ -185,7 +185,8 @@ endif
ifeq ($(COMP),clang)
comp=clang
CXX=clang++
CXXFLAGS += -pedantic -Wextra -Wshadow
CXXFLAGS += -pedantic -Wextra -Wshadow -m$(bits)
LDFLAGS += -m$(bits)
ifeq ($(UNAME),Darwin)
CXXFLAGS += -stdlib=libc++
DEPENDFLAGS += -stdlib=libc++
Expand Down

0 comments on commit 900279a

Please sign in to comment.