mirror of
https://github.com/google/liblc3.git
synced 2026-04-16 12:45:31 +00:00
While packaging for homebrew, I ran into some rpath issue when building the tools. ``` $ /opt/homebrew/Cellar/liblc3/1.1.0/bin/elc3 -h dyld[72986]: Library not loaded: @rpath/liblc3.1.dylib Referenced from: <1B4E9174-0A9C-3907-8487-40BBBE5B52CB> /opt/homebrew/Cellar/liblc3/1.1.0/bin/elc3 Reason: no LC_RPATH's found Abort trap: 6 ``` This patch is for fixing the rpath ref issue. Signed-off-by: Rui Chen <rui@chenrui.dev>
35 lines
1.1 KiB
Meson
35 lines
1.1 KiB
Meson
# Copyright © 2022 Intel Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at:
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
inc = include_directories('../include')
|
|
|
|
lc3toolslib = static_library('lc3toolslib',
|
|
['lc3bin.c', 'wave.c'],
|
|
link_with: lc3lib,
|
|
include_directories: inc,
|
|
dependencies: m_dep,
|
|
)
|
|
|
|
executable('elc3', ['elc3.c'],
|
|
link_with : lc3toolslib,
|
|
include_directories: inc,
|
|
install: true,
|
|
install_rpath: join_paths(get_option('prefix'), get_option('libdir')))
|
|
|
|
executable('dlc3', ['dlc3.c'],
|
|
link_with : lc3toolslib,
|
|
include_directories: inc,
|
|
install: true,
|
|
install_rpath: join_paths(get_option('prefix'), get_option('libdir')))
|