aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJools Wills2020-01-10 17:54:48 +0000
committerJools Wills2020-01-10 17:56:08 +0000
commitc7beb306cf305d142de9e8b6426f588477940e7f (patch)
tree77d01afb8b674ddaa9e848d5eb79fc454d45fc7b
parent197058cbea6d59cb567be65ac6addebdabd5b114 (diff)
downloadsnes9x2005-c7beb306cf305d142de9e8b6426f588477940e7f.tar.gz
snes9x2005-c7beb306cf305d142de9e8b6426f588477940e7f.tar.bz2
snes9x2005-c7beb306cf305d142de9e8b6426f588477940e7f.zip
fixed building on arm - missing -fPIC during compilation - fixes #71
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3e57b3a..f1fe820 100644
--- a/Makefile
+++ b/Makefile
@@ -560,10 +560,10 @@ else ifneq ($(platform),genode)
endif
%.o: %.cpp
- $(CXX) $(CXXFLAGS) -c $(OBJOUT)$@ $<
+ $(CXX) $(fpic) $(CXXFLAGS) -c $(OBJOUT)$@ $<
%.o: %.c
- $(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
+ $(CC) $(fpic) $(CFLAGS) -c $(OBJOUT)$@ $<
ifeq ($(platform), theos_ios)
COMMON_FLAGS := -DIOS $(COMMON_DEFINES) $(INCFLAGS) -I$(THEOS_INCLUDE_PATH) -Wno-error