summaryrefslogtreecommitdiff
path: root/solenv/inc/tg_def.mk
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-09-06 12:40:10 +0000
committerKurt Zenker <kz@openoffice.org>2007-09-06 12:40:10 +0000
commitc097fda00aa27ccf78e6e40a98b55ee7dc729ab8 (patch)
tree0d148200cab6763a28d086ef1d3471be5d25ea7f /solenv/inc/tg_def.mk
parenta0ca6c71687a209b9dcf908e13e67b13dabb7fd0 (diff)
INTEGRATION: CWS mingwport06 (1.42.42); FILE MERGED
2007/08/27 15:49:03 vg 1.42.42.1: #i80359# MinGW port efforts
Diffstat (limited to 'solenv/inc/tg_def.mk')
-rw-r--r--solenv/inc/tg_def.mk19
1 files changed, 17 insertions, 2 deletions
diff --git a/solenv/inc/tg_def.mk b/solenv/inc/tg_def.mk
index 0a49115dc93b..6cd227189537 100644
--- a/solenv/inc/tg_def.mk
+++ b/solenv/inc/tg_def.mk
@@ -4,9 +4,9 @@
#
# $RCSfile: tg_def.mk,v $
#
-# $Revision: 1.42 $
+# $Revision: 1.43 $
#
-# last change: $Author: obo $ $Date: 2007-07-17 07:24:25 $
+# last change: $Author: kz $ $Date: 2007-09-06 13:40:10 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -56,6 +56,21 @@ DEF$(TNR)DEPN+=$(foreach,i,$(DEFLIB$(TNR)NAME) $(SLB)$/$(i).lib)
DEF$(TNR)EXPORTFILE=$(MISC)$/$(SHL$(TNR)VERSIONMAP:b)_$(SHL$(TNR)TARGET).dxp
$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)VERSIONMAP)
$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
+.IF "$(COM)"=="GCC"
+ -grep -v "\*\|?" $@ > $@.exported-symbols
+ -grep "\*\|?" $@ > $@.symbols-regexp
+# Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
+# Extract RTTI symbols from all the objects that will be used to build a shared library
+.IF "$(SHL$(TNR)OBJS)"!=""
+ -echo $(foreach,i,$(SHL$(TNR)OBJS) $i) | xargs -n1 nm -gP | $(SOLARENV)$/bin$/addsym-mingw.sh $@.symbols-regexp $(MISC)$/symbols-regexp.tmp >> $@.exported-symbols
+.ENDIF
+.IF "$(SHL$(TNR)LIBS)"!=""
+ -$(TYPE) $(foreach,j,$(SHL$(TNR)LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g | xargs -n1 nm -gP | $(SOLARENV)$/bin$/addsym-mingw.sh $@.symbols-regexp $(MISC)$/symbols-regexp.tmp >> $@.exported-symbols
+.ENDIF
+# overwrite the map file generate into the local output tree with the generated
+# exported symbols list
+ cp $@.exported-symbols $@
+.ENDIF # .IF "$(COM)"=="GCC"
.ENDIF # "$(GUI)"=="WNT"
.ENDIF # "$(DEF$(TNR)EXPORTFILE)"==""