3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # At least on v20z-so3, when /so/env/bt_linux_libc2.11/DEV300/bin/rpm is called
21 # and internally looks for a ld-linux.so.2, it picks up
22 # /lib/tls/i686/cmov/ld-linux.so.2 and SIGSEGVs. This is prevented by
23 # adding /so/env/bt_linux_libc2.11/DEV300/lib to the LD_LIBRARY_PATH, thus
24 # picking up the ld-linux.so.2 from there:
27 if [ "$OUTPATH" = "unxlngi6" ]
29 LD_LIBRARY_PATH
=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LIBRARY_PATH?} \
30 ${BUILD_TOOLS?}/rpmbuild
"$@"
32 if [ "$OUTPATH" = "unxlngx6" ]
34 LD_LIBRARY_PATH
=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LIBRARY_PATH?} \
35 ${BUILD_TOOLS?}/rpmbuild
"$@"
37 LD_LIBRARY_PATH
=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${COMPATH?}/lib \
38 ${BUILD_TOOLS?}/rpm
"$@"