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.
This commit is contained in:
parent
4ba8819582
commit
b52274d011
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue