Bug 367664: Miscellaneous RISC OS support

Patch contributed by Peter Naulls <peter@chocky.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@258053 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nelson%bolyard.com 2009-08-11 03:23:39 +00:00
parent a15fc11b3f
commit 23d4707323
2 changed files with 11 additions and 7 deletions

View File

@ -20,6 +20,7 @@
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Peter Naulls
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
@ -37,12 +38,19 @@
include $(CORE_DEPTH)/coreconf/UNIX.mk
DLL_SUFFIX = a
MKSHLIB = $(GCCSDK_INSTALL_CROSSBIN)/arm-unknown-riscos-ar cr
LIB_SUFFIX = a
DLL_SUFFIX = so
AR = ar cr $@
LDOPTS += -L$(SOURCE_LIB_DIR)
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
OS_RELEASE =
OS_TARGET = RISCOS
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -shared
DSO_LDFLAGS =
ifdef BUILD_OPT
OPTIMIZER = -O2 -mpoke-function-name
OPTIMIZER = -O3
endif

View File

@ -337,12 +337,8 @@ ifdef MT
fi
endif # MSVC with manifest tool
endif
else
ifeq ($(OS_TARGET),RISCOS)
$(MKSHLIB) $@ $(OBJS) $(SUB_SHLOBJS)
else
$(MKSHLIB) -o $@ $(OBJS) $(SUB_SHLOBJS) $(LD_LIBS) $(EXTRA_LIBS) $(EXTRA_SHARED_LIBS) $(OS_LIBS)
endif
chmod +x $@
ifeq ($(OS_TARGET),Darwin)
ifdef MAPFILE