Fix rpath in examples

This commit is contained in:
Martin Fouilleul 2023-06-20 11:45:59 +02:00
parent d9a9215fa8
commit 26a1af344c
12 changed files with 22 additions and 1 deletions

View File

@ -77,7 +77,6 @@ if [ $target = 'lib' ] ; then
# add executable path to rpath. Client executable can still add its own rpaths if needed, e.g. @executable_path/libs/ etc.
install_name_tool -id "@rpath/libmilepost.dylib" $BINDIR/libmilepost.dylib
install_name_tool -add_rpath "@executable_path" $BINDIR/libmilepost.dylib
else
# additional targets

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_atlas main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_atlas

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_canvas main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_canvas

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_image main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_image

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-O2 -mmacos-version-min=10.15.4"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/perf_text main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/perf_text

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_polygon main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_polygon

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_smooth_resize main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_smooth_resize

View File

@ -10,3 +10,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_surface_sharing main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_surface_sharing

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_tiger main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_tiger

View File

@ -10,3 +10,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_gles_triangle main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_gles_triangle

View File

@ -13,3 +13,5 @@ xcrun -sdk macosx metallib -o shader.metallib shader.air
cp shader.metallib $BINDIR/triangle_shader.metallib
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_metal_triangle main.m
install_name_tool -add_rpath "@executable_path" $BINDIR/example_metal_triangle

View File

@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_ui main.c
install_name_tool -add_rpath "@executable_path" $BINDIR/example_ui