URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
12 |
jlechner |
# Just for these, we omit the frame pointer since it makes such a big
|
2 |
|
|
# difference. It is then pointless adding debugging.
|
3 |
|
|
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fpic
|
4 |
|
|
LIBGCC2_DEBUG_CFLAGS = -g0
|
5 |
|
|
|
6 |
|
|
# Build a shared libgcc library.
|
7 |
|
|
SHLIB_EXT = .so
|
8 |
|
|
SHLIB_NAME = @shlib_base_name@.so
|
9 |
|
|
SHLIB_SONAME = @shlib_base_name@.so.1
|
10 |
|
|
SHLIB_OBJS = @shlib_objs@
|
11 |
|
|
|
12 |
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
13 |
|
|
-Wl,-soname,$(SHLIB_SONAME) \
|
14 |
|
|
-o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) -lc && \
|
15 |
|
|
rm -f $(SHLIB_SONAME) && \
|
16 |
|
|
if [ -f $(SHLIB_NAME) ]; then \
|
17 |
|
|
mv -f $(SHLIB_NAME) $(SHLIB_NAME).backup; \
|
18 |
|
|
else true; fi && \
|
19 |
|
|
mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \
|
20 |
|
|
$(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME)
|
21 |
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
22 |
|
|
# libgcc.mk. We want this delayed until actual install time.
|
23 |
|
|
SHLIB_INSTALL = \
|
24 |
|
|
$$(mkinstalldirs) $$(DESTDIR)$$(slibdir); \
|
25 |
|
|
$(INSTALL_DATA) $(SHLIB_NAME) $$(DESTDIR)$$(slibdir)/$(SHLIB_SONAME); \
|
26 |
|
|
rm -f $$(DESTDIR)$$(slibdir)/$(SHLIB_NAME); \
|
27 |
|
|
$(LN_S) $(SHLIB_SONAME) $$(DESTDIR)$$(slibdir)/$(SHLIB_NAME)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.