From 6a8abe1a91e0ca25fa3cbec2a2ab4b3ff7bb6538 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 6 Jan 2010 02:46:23 +0000 Subject: Revert previous changes. It turns out that, despite what the documentation says, when targetting RISC OS, the soname should be in the form libfoo.so.major, and *not* libfoo/so/major. However, when we create the installed symlinks and are targetting RISC OS, the symlink targets must be of the form libfoo/so/major/minor/patch, and not libfoo.so.major.minor.patch. To add extra complexity, when we're building for RISC OS, but installing in a cross-compilation environment, we want the symlinks to be valid on Unix hosts, which means libfoo.so.major.minor.patch. The upshot of all this is that we simply cannot perform the appropriate magic in the buildsystem makefiles as they have no knowledge of whether they're installing into a cross-compilation or a target environment. Nor should they care about this, either. Therefore, the place where we get to massage the target name is in ro-ln. svn path=/trunk/tools/buildsystem/; revision=9791 --- makefiles/Makefile.tools | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'makefiles') diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index 3bbaa77..3b87a07 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -291,11 +291,7 @@ ifeq ($(COMPONENT_TYPE),lib-shared) # Default CFLAGS/LDFLAGS for shared libraries SHAREDCFLAGS ?= -fPIC -DPIC SHAREDCXXFLAGS ?= -fPIC -DPIC - ifeq ($(TARGET),riscos) - SHAREDLDFLAGS ?= -shared -Wl,-soname,$(subst .,/,$(SONAME)) - else - SHAREDLDFLAGS ?= -shared -Wl,-soname,$(SONAME) - endif + SHAREDLDFLAGS ?= -shared -Wl,-soname,$(SONAME) SHAREDLDPATH ?= LD_LIBRARY_PATH="$(BUILDDIR):$(LD_LIBRARY_PATH)" endif -- cgit v1.2.3