Skip to content

Commit

Permalink
build_proton: fix the hardcoded absolute path name in libSDL2.dylib
Browse files Browse the repository at this point in the history
Without this fix, wine fails to dlopen dinput.dll.so, as it looks for
libSDL2.dylib in its original path where it was built, rather than in
the libdirs next to the wine libraries.

Ideally, we'd fix this in the libSDL build rather than postprocessing
it, but I lack the familiarity with libSDL's buildsystem with regard to
darwin.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
  • Loading branch information
kergoth committed Aug 26, 2018
1 parent 6d372c3 commit 57a36d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_proton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ function build_libSDL
fi

cp "$TOOLS_DIR32"/lib/libSDL2.$LIB_SUFFIX "$DST_DIR"/lib
$STRIP "$DST_DIR"/lib/libSDL2.dylib
$STRIP "$DST_DIR"/lib/libSDL2.$LIB_SUFFIX
install_name_tool -id @rpath/libSDL2.$LIB_SUFFIX "$DST_DIR"/lib/libSDL2.$LIB_SUFFIX

cp "$TOOLS_DIR64"/lib/libSDL2.$LIB_SUFFIX "$DST_DIR"/lib64
$STRIP "$DST_DIR"/lib64/libSDL2.dylib
$STRIP "$DST_DIR"/lib64/libSDL2.$LIB_SUFFIX
install_name_tool -id @rpath/libSDL2.$LIB_SUFFIX "$DST_DIR"/lib64/libSDL2.$LIB_SUFFIX
}

function build_moltenvk
Expand Down

0 comments on commit 57a36d1

Please sign in to comment.