add macos build tweaks

This commit is contained in:
IC Rainbow
2024-12-21 15:31:46 +02:00
parent 74ae0ba668
commit ba98cdadd6
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -11,4 +11,9 @@ package direct-sqlcipher
extra-lib-dirs: /opt/homebrew/opt/openssl@3.0/lib
flags: +openssl
package jpeg-turbo
extra-include-dirs: /opt/homebrew/opt/libjpeg-turbo/include
extra-lib-dirs: /opt/homebrew/opt/libjpeg-turbo/lib
flags: +static
test-show-details: direct
+1 -1
View File
@@ -24,7 +24,7 @@ for elem in "${exports[@]}"; do count=$(grep -R "$elem$" libsimplex.dll.def | wc
for elem in "${exports[@]}"; do count=$(grep -R "\"$elem\"" flake.nix | wc -l); if [ $count -ne 2 ]; then echo Wrong exports in flake.nix. Add \"$elem\" in two places of the file; exit 1; fi ; done
rm -rf $BUILD_DIR
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library'
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library' --constraint 'jpeg-turbo +static'
cd $BUILD_DIR/build
mkdir deps 2> /dev/null || true