[Scummvm-cvs-logs] scummvm master -> b52274d011bb0e4be399dd25a04f76f6a3c22f8c
lordhoto
lordhoto at gmail.com
Mon Oct 22 23:23:18 CEST 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b52274d011 CONFIGURE: Use -fPIC instead of -fpic on Linux and FreeBSD.
Commit: b52274d011bb0e4be399dd25a04f76f6a3c22f8c
https://github.com/scummvm/scummvm/commit/b52274d011bb0e4be399dd25a04f76f6a3c22f8c
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-10-22T14:16:07-07:00
Commit Message:
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.
Changed paths:
configure
diff --git a/configure b/configure
index 8b9a9e9..336c79e 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 =
More information about the Scummvm-git-logs
mailing list