summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-19 11:42:47 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-19 11:42:47 +0000
commit53df3a5262d8af5bc66575ab91cd38a54b7ff096 (patch)
tree1d171e39027f741c79e811fdde81e9770dc598b9
parent87388080cb05950eefaec978f5143e695ba5304b (diff)
CWS-TOOLING: integrate CWS sb104
2009-01-27 13:09:06 +0100 sb r266986 : #i97992# cws rebase: merged cws/sb104/config_office/set_soenv.in with moved tags/DEV300_m40/set_soenv.in 2009-01-27 10:56:40 +0100 sb r266966 : CWS-TOOLING: rebase CWS sb104 to trunk@266944 (milestone: DEV300:m40) 2009-01-20 14:37:00 +0100 sb r266581 : #i97992# missing treatment of Solaris-only adjustvisibility as build-internal tool 2009-01-20 09:32:38 +0100 sb r266554 : CWS-TOOLING: rebase CWS sb104 to trunk@266428 (milestone: DEV300:m39) 2009-01-14 13:40:45 +0100 sb r266296 : #i97992# do not pass comment lines to shell 2009-01-14 12:50:34 +0100 sb r266290 : #i97992# avoid problems with checkdll not finding AWTLIB and its dependents 2009-01-14 12:49:20 +0100 sb r266289 : #i97992# on Linux and Solaris, regxpcom apparently needs to be called with the libxpcom.so directory on the LD_LIBRARY_PATH 2009-01-13 09:41:37 +0100 sb r266196 : #i97992# fixed AUGMENT_LIBRARY_PATH definitions 2009-01-12 18:02:03 +0100 sb r266177 : #i97992# get rid of LD_LIBRARY_PATH in build environment
-rw-r--r--cpputools/prj/d.lst2
-rw-r--r--cpputools/source/registercomponent/makefile.mk9
-rwxr-xr-xcpputools/source/registercomponent/regcomp.sh144
-rw-r--r--offapi/util/makefile.mk2
-rw-r--r--pyuno/source/loader/makefile.mk14
-rw-r--r--rdbmaker/source/rdbmaker/makefile.mk2
-rw-r--r--sal/rtl/source/makefile.mk3
-rw-r--r--sal/typesconfig/makefile.mk2
-rw-r--r--xml2cmp/util/makefile.mk2
9 files changed, 11 insertions, 169 deletions
diff --git a/cpputools/prj/d.lst b/cpputools/prj/d.lst
index 1e6a1440e6d4..fa029cc4deeb 100644
--- a/cpputools/prj/d.lst
+++ b/cpputools/prj/d.lst
@@ -1,6 +1,6 @@
..\%__SRC%\bin\regcomp.exe %_DEST%\bin%_EXT%\regcomp.exe
+..\%__SRC%\bin\regcomp %_DEST%\bin%_EXT%\regcomp
..\%__SRC%\bin\regcomp %_DEST%\bin%_EXT%\regcomp.bin
-..\%__SRC%\misc\regcomp.sh %_DEST%\bin%_EXT%\regcomp
..\%__SRC%\bin\regcomplazy.exe %_DEST%\bin%_EXT%\regcomplazy.exe
..\%__SRC%\bin\regcomplazy %_DEST%\bin%_EXT%\regcomplazy
..\%__SRC%\bin\uno.exe %_DEST%\bin%_EXT%\uno.exe
diff --git a/cpputools/source/registercomponent/makefile.mk b/cpputools/source/registercomponent/makefile.mk
index f0eb46e203d4..e03df0265a61 100644
--- a/cpputools/source/registercomponent/makefile.mk
+++ b/cpputools/source/registercomponent/makefile.mk
@@ -45,7 +45,6 @@ UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb
NO_OFFUH=TRUE
CPPUMAKERFLAGS += -C
-UNIXTEXT= $(MISC)$/regcomp.sh
UNOTYPES=\
com.sun.star.uno.TypeClass \
com.sun.star.lang.XMultiServiceFactory \
@@ -78,11 +77,3 @@ APP1STDLIBS+= \
.INCLUDE : target.mk
-
-
-.IF "$(GUI)"=="UNX"
-ALLTAR: REGCOMPSH
-
-REGCOMPSH : $(UNIXTEXT)
- +-chmod +x $(UNIXTEXT)
-.ENDIF
diff --git a/cpputools/source/registercomponent/regcomp.sh b/cpputools/source/registercomponent/regcomp.sh
deleted file mode 100755
index 68a46450abb2..000000000000
--- a/cpputools/source/registercomponent/regcomp.sh
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/bin/sh
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# $RCSfile: regcomp.sh,v $
-#
-# $Revision: 1.4 $
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-# resolve installation directory
-sd_cwd="`pwd`"
-if [ -h "$0" ] ; then
- sd_basename=`basename "$0"`
- sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
- cd "`dirname "$0"`"
- cd "`dirname "$sd_script"`"
-else
- cd "`dirname "$0"`"
-fi
-
-sd_prog="`pwd`"
-
-cd ..
-sd_binary=`basename "$0"`".bin"
-sd_inst="`pwd`"
-
-# change back directory
-cd "$sd_cwd"
-
-# set search path for shared libraries
-sd_platform=`uname -s`
-case $sd_platform in
- AIX)
- # this is a temporary hack until we can live with the default search paths
- if [ $LIBPATH ]; then
- SYSTEM_LIBPATH=$LIBPATH
- export SYSTEM_LIBPATH
- fi
- LIBPATH="$sd_prog":$LIBPATH
- export LIBPATH
- ;;
-
- Darwin)
- # this is a temporary hack until we can live with the default search paths
- if [ $DYLD_LIBRARY_PATH ]; then
- SYSTEM_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
- export SYSTEM_DYLD_LIBRARY_PATH
- fi
- DYLD_LIBRARY_PATH="$sd_prog":$DYLD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH
- ;;
-
- HP-UX)
- # this is a temporary hack until we can live with the default search paths
- if [ $SHLIB_PATH ]; then
- SYSTEM_SHLIB_PATH=$SHLIB_PATH
- export SYSTEM_SHLIB_PATH
- fi
- SHLIB_PATH="$sd_prog":/usr/openwin/lib:$SHLIB_PATH
- export SHLIB_PATH
- ;;
-
- IRIX*)
- # this is a temporary hack until we can live with the default search paths
- if [ $LD_LIBRARYN32_PATH ]; then
- SYSTEM_LD_LIBRARYN32_PATH=$LD_LIBRARYN32_PATH
- export SYSTEM_LD_LIBRARYN32_PATH
- fi
- LD_LIBRARYN32_PATH=:"$sd_prog":$LD_LIBRARYN32_PATH
- export LD_LIBRARYN32_PATH
- ;;
-
- *)
- # this is a temporary hack until we can live with the default search paths
- if [ $LD_LIBRARY_PATH ]; then
- SYSTEM_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
- export SYSTEM_LD_LIBRARY_PATH
- fi
- LD_LIBRARY_PATH="$sd_prog":$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- ;;
-esac
-
-#collect all bootstrap variables specified on the command line
-#so that they can be passed as arguments to javaldx later on
-for arg in $@
-do
- case "$arg" in
- -env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";;
- esac
-done
-
-# extend the ld_library_path for java: javaldx checks the sofficerc for us
-if [ -x "$sd_prog/javaldx" ] ; then
- java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
- if [ "$java_ld_library_path" != "" ] ; then
- case $sd_platform in
- AIX)
- LIBPATH=${java_ld_library_path}:${LIBPATH}
- ;;
- Darwin)
- DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
- ;;
- HP-UX)
- SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
- ;;
- IRIX*)
- LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
- ;;
- *)
- LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
- ;;
- esac
- fi
-fi
-
-
-
-# execute binary
-exec "$sd_prog/$sd_binary" "$@"
-
diff --git a/offapi/util/makefile.mk b/offapi/util/makefile.mk
index 069b11e60760..6e4a41503a56 100644
--- a/offapi/util/makefile.mk
+++ b/offapi/util/makefile.mk
@@ -183,6 +183,6 @@ $(REGISTRYCHECKFLAG) : $(UCR)$/types.db $(OUT)$/ucrdoc$/types_doc.db
#JSC: new target to prepare some UNO type statistics, the ouput will be later used
# for versioning of UNO cli type libraries
$(UNOTYPE_STATISTICS) : $(REGISTRYCHECKFLAG)
- $(PERL) checknewapi.pl $(UCR)$/types.db $(REFERENCE_RDB) "$(RSCREVISION)" > $@
+ $(AUGMENT_LIBRARY_PATH) $(PERL) checknewapi.pl $(UCR)$/types.db $(REFERENCE_RDB) "$(RSCREVISION)" > $@
.INCLUDE : target.mk
diff --git a/pyuno/source/loader/makefile.mk b/pyuno/source/loader/makefile.mk
index ea5d907250bc..67fbe81e482e 100644
--- a/pyuno/source/loader/makefile.mk
+++ b/pyuno/source/loader/makefile.mk
@@ -94,7 +94,7 @@ COMPONENTS= \
invocadapt.uno \
proxyfac.uno \
reflection.uno \
- pythonloader.uno
+ .$/pythonloader.uno
# --- Targets ------------------------------------------------------
@@ -107,20 +107,12 @@ ALL : ALLTAR \
$(DLLDEST)$/%.py: %.py
cp $? $@
-# For Mac OS X,
-# The python loader component is linked against libpyuno.dylib,
-# which hasn't been delivered yet but dyld needs to know where it is
-# so regcomp can load the component.
$(DLLDEST)$/pyuno_services.rdb : makefile.mk $(DLLDEST)$/$(DLLPRE)$(TARGET)$(DLLPOST)
-rm -f $@ $(DLLDEST)$/pyuno_services.tmp $(DLLDEST)$/pyuno_services.rdb
-.IF "$(OS)"=="MACOSX"
- cd $(DLLDEST) && sh -c "DYLD_LIBRARY_PATH=$(DYLD_LIBRARY_PATH):$(OUT)$/lib;export DYLD_LIBRARY_PATH;regcomp -register -r pyuno_services.tmp $(foreach,i,$(COMPONENTS) -c $(i))"
-.ELSE
.IF "$(GUI)$(COM)"=="WNTGCC"
- cd $(DLLDEST) && sh -c "export PATH='$(PATH):$(OUT)$/bin'; regcomp -register -r pyuno_services.tmp $(foreach,i,$(COMPONENTS) -c $(i))"
+ cd $(DLLDEST) && sh -c "export PATH='$(PATH):$(OUT)$/bin'; regcomp -register -r pyuno_services.tmp -wop $(foreach,i,$(COMPONENTS) -c $(i))"
.ELSE
- cd $(DLLDEST) && regcomp -register -r pyuno_services.tmp $(foreach,i,$(COMPONENTS) -c $(i))
+ cd $(DLLDEST) && $(REGCOMP) -register -r pyuno_services.tmp -wop $(foreach,i,$(COMPONENTS) -c $(i))
.ENDIF # "$(GUI)$(COM)"=="WNTGCC"
-.ENDIF # $(OS)=="MACOSX"
cd $(DLLDEST) && mv pyuno_services.tmp pyuno_services.rdb
diff --git a/rdbmaker/source/rdbmaker/makefile.mk b/rdbmaker/source/rdbmaker/makefile.mk
index 5378364e8edb..8d29743a5607 100644
--- a/rdbmaker/source/rdbmaker/makefile.mk
+++ b/rdbmaker/source/rdbmaker/makefile.mk
@@ -62,4 +62,6 @@ APP1STDLIBS=\
APP1LIBS= \
$(LB)$/codemaker.lib
+APP1RPATH= NONE
+
.INCLUDE : target.mk
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index 20d227baaca5..0d6447d64758 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -140,6 +140,7 @@ OBJFILES+=$(OBJ)$/memory_fini.obj
APP1TARGET=gen_makefile
APP1OBJS=$(SLO)$/gen_makefile.obj
APP1LIBSALCPPRT=
+APP1RPATH=NONE
# --- Extra objs ----------------------------------------------------
@@ -197,5 +198,5 @@ $(ALWAYSDBGFILES):
ALLTAR : $(BOOTSTRAPMK)
$(BOOTSTRAPMK) : $(APP1TARGETN)
- $< > $@
+ $(AUGMENT_LIBRARY_PATH) $< > $@
diff --git a/sal/typesconfig/makefile.mk b/sal/typesconfig/makefile.mk
index 6591b2c55ed4..292f5e2843ba 100644
--- a/sal/typesconfig/makefile.mk
+++ b/sal/typesconfig/makefile.mk
@@ -61,5 +61,5 @@ ALLTAR : $(INCCOM)$/sal$/typesizes.h
$(INCCOM)$/sal$/typesizes.h : $(BIN)$/$(TARGET)
-$(MKDIR) $(INCCOM)$/sal
- $(BIN)$/$(TARGET) $@
+ $(AUGMENT_LIBRARY_PATH) $(BIN)$/$(TARGET) $@
diff --git a/xml2cmp/util/makefile.mk b/xml2cmp/util/makefile.mk
index 054cbbf3f056..7252e8fbaa1e 100644
--- a/xml2cmp/util/makefile.mk
+++ b/xml2cmp/util/makefile.mk
@@ -55,7 +55,7 @@ LIBSALCPPRT=$(0)
APP1LIBS= $(LB)$/x2c_xcd.lib $(LB)$/x2c_support.lib
APP1DEPN= $(LB)$/x2c_xcd.lib $(LB)$/x2c_support.lib
-
+APP1RPATH= NONE
.INCLUDE : target.mk