fix: make the rpath correct for libplist

This commit is contained in:
👒
2025-06-03 16:40:54 -07:00
parent 2029f5212e
commit 96bda22646

View File

@@ -95,6 +95,9 @@ build_plist_ios:
LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk iphoneos --show-sdk-path)" && \ LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk iphoneos --show-sdk-path)" && \
make clean && make -j$(sysctl -n hw.ncpu) && make install make clean && make -j$(sysctl -n hw.ncpu) && make install
install_name_tool -id @rpath/libplist-2.0.4.dylib {{ios_out}}/lib/libplist-2.0.4.dylib
build_plist_sim: build_plist_sim:
rm -rf {{sim_out}} build/build-sim rm -rf {{sim_out}} build/build-sim
mkdir -p {{sim_out}} mkdir -p {{sim_out}}
@@ -111,6 +114,8 @@ build_plist_sim:
LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" && \ LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" && \
make clean && make -j$(sysctl -n hw.ncpu) && make install make clean && make -j$(sysctl -n hw.ncpu) && make install
install_name_tool -id @rpath/libplist-2.0.4.dylib {{sim_out}}/lib/libplist-2.0.4.dylib
build_plist_x86_64_sim: build_plist_x86_64_sim:
rm -rf {{x86_64_sim_out}} build/build-sim rm -rf {{x86_64_sim_out}} build/build-sim
mkdir -p {{x86_64_sim_out}} mkdir -p {{x86_64_sim_out}}
@@ -127,6 +132,8 @@ build_plist_x86_64_sim:
LDFLAGS="-arch x86_64 -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" && \ LDFLAGS="-arch x86_64 -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" && \
make clean && make -j$(sysctl -n hw.ncpu) && make install make clean && make -j$(sysctl -n hw.ncpu) && make install
install_name_tool -id @rpath/libplist-2.0.4.dylib {{x86_64_sim_out}}/lib/libplist-2.0.4.dylib
build_plist_mac: build_plist_mac:
rm -rf {{mac_out}} build/build-mac rm -rf {{mac_out}} build/build-mac
mkdir -p {{mac_out}} mkdir -p {{mac_out}}
@@ -143,6 +150,8 @@ build_plist_mac:
LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" && \ LDFLAGS="-arch arm64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" && \
make clean && make -j$(sysctl -n hw.ncpu) && make install make clean && make -j$(sysctl -n hw.ncpu) && make install
install_name_tool -id @rpath/libplist-2.0.4.dylib {{mac_out}}/lib/libplist-2.0.4.dylib
build_plist_x86_64_mac: build_plist_x86_64_mac:
rm -rf {{x86_64_mac_out}} build/build-mac rm -rf {{x86_64_mac_out}} build/build-mac
mkdir -p {{x86_64_mac_out}} mkdir -p {{x86_64_mac_out}}
@@ -158,3 +167,5 @@ build_plist_x86_64_mac:
CXXFLAGS="-arch x86_64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" \ CXXFLAGS="-arch x86_64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" \
LDFLAGS="-arch x86_64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" && \ LDFLAGS="-arch x86_64 -isysroot $(xcrun --sdk macosx --show-sdk-path)" && \
make clean && make -j$(sysctl -n hw.ncpu) && make install make clean && make -j$(sysctl -n hw.ncpu) && make install
install_name_tool -id @rpath/libplist-2.0.4.dylib {{x86_64_mac_out}}/lib/libplist-2.0.4.dylib