Fix current directory determination.

This commit is contained in:
Miku AuahDark
2023-04-15 13:38:33 +08:00
parent 4622d2c840
commit 5fc531e2da
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ override INSTALLPREFIX := $(CURDIR)/installdir
override CMAKE_PREFIX := $(CURDIR)/cmake
CMAKE := $(CMAKE_PREFIX)/bin/cmake
override CMAKE_OPTS := --install-prefix $(INSTALLPREFIX) -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_RPATH='$$ORIGIN/../lib'
override CONFIGURE := LDFLAGS="-Wl,-rpath,'\$$\$$ORIGIN/../lib' $$LDFLAGS" LD_LIBRARY_PATH=$PWD/installdir/lib:${LD_LIBRARY_PATH} ../configure --prefix=$(INSTALLPREFIX)
override CONFIGURE := LDFLAGS="-Wl,-rpath,'\$$\$$ORIGIN/../lib' $$LDFLAGS" LD_LIBRARY_PATH=$(CURDIR)/installdir/lib:${LD_LIBRARY_PATH} ../configure --prefix=$(INSTALLPREFIX)
# CMake setup
ifeq ($(SYSTEM_CMAKE),)
+1 -1
View File
@@ -9,7 +9,7 @@ Build
First, install these dependencies (adapt accordingly for non-Debian distro):
```sh
sudo apt-get install autotools-dev automake autoconf libtool patchelf curl
sudo apt-get install autotools-dev automake autoconf libtool patchelf curl pkg-config
```
Then followed by [all dependencies required by SDL](https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md#build-dependencies), but **not** the SDL itself.