aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohannes Schickel2012-10-22 23:16:07 +0200
committerJohannes Schickel2012-10-22 23:16:07 +0200
commitb52274d011bb0e4be399dd25a04f76f6a3c22f8c (patch)
tree47a25566e34ae06094b7d960239e586ed432cf49 /configure
parent4ba8819582ee6bc6e89016f19bc5754ef7f837e2 (diff)
downloadscummvm-rg350-b52274d011bb0e4be399dd25a04f76f6a3c22f8c.tar.gz
scummvm-rg350-b52274d011bb0e4be399dd25a04f76f6a3c22f8c.tar.bz2
scummvm-rg350-b52274d011bb0e4be399dd25a04f76f6a3c22f8c.zip
CONFIGURE: Use -fPIC instead of -fpic on Linux and FreeBSD.
This allows compilation of plugins on PowerPC. This is done similar to what was proposed in patch #3575572 "Fails to build on Linux PowerPC when using plugins". I chose to use -fPIC unconditionally, since it will only make a difference on platforms, which will require -fPIC, like PowerPC. On amd64 for example gcc produces the same code.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 8b9a9e918c..336c79e332 100755
--- a/configure
+++ b/configure
@@ -2980,7 +2980,7 @@ PLUGIN_LDFLAGS += -Wl,-T$(srcdir)/backends/plugins/ds/plugin.ld -mthumb-interwo
freebsd*)
_plugin_prefix="lib"
_plugin_suffix=".so"
- CXXFLAGS="$CXXFLAGS -fpic"
+ CXXFLAGS="$CXXFLAGS -fPIC"
_mak_plugins='
PLUGIN_EXTRA_DEPS =
PLUGIN_LDFLAGS += -shared
@@ -3024,7 +3024,7 @@ POST_OBJS_FLAGS := -Wl,-no-whole-archive
linux*)
_plugin_prefix="lib"
_plugin_suffix=".so"
- CXXFLAGS="$CXXFLAGS -fpic"
+ CXXFLAGS="$CXXFLAGS -fPIC"
LIBS="$LIBS -ldl"
_mak_plugins='
PLUGIN_EXTRA_DEPS =