Fix rpath in examples
This commit is contained in:
parent
d9a9215fa8
commit
26a1af344c
1
build.sh
1
build.sh
|
@ -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.
|
# 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 -id "@rpath/libmilepost.dylib" $BINDIR/libmilepost.dylib
|
||||||
install_name_tool -add_rpath "@executable_path" $BINDIR/libmilepost.dylib
|
|
||||||
|
|
||||||
else
|
else
|
||||||
# additional targets
|
# additional targets
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_atlas main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_atlas main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_atlas
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_canvas main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_canvas main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_canvas
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_image main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_image main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_image
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-O2 -mmacos-version-min=10.15.4"
|
FLAGS="-O2 -mmacos-version-min=10.15.4"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/perf_text main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/perf_text main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/perf_text
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_polygon main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_polygon main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_polygon
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_smooth_resize main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_smooth_resize main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_smooth_resize
|
||||||
|
|
|
@ -10,3 +10,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_surface_sharing main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_surface_sharing main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_surface_sharing
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_tiger main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_tiger main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_tiger
|
||||||
|
|
|
@ -10,3 +10,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_gles_triangle main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_gles_triangle main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_gles_triangle
|
||||||
|
|
|
@ -13,3 +13,5 @@ xcrun -sdk macosx metallib -o shader.metallib shader.air
|
||||||
cp shader.metallib $BINDIR/triangle_shader.metallib
|
cp shader.metallib $BINDIR/triangle_shader.metallib
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_metal_triangle main.m
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_metal_triangle main.m
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_metal_triangle
|
||||||
|
|
|
@ -9,3 +9,5 @@ LIBS="-L$BINDIR -lmilepost"
|
||||||
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
||||||
|
|
||||||
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_ui main.c
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_ui main.c
|
||||||
|
|
||||||
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_ui
|
||||||
|
|
Loading…
Reference in New Issue