Merge pull request #5577 from orbea/etc

Don't install retroarch.cfg to /etc if --prefix is not set to /usr*
This commit is contained in:
Twinaphex 2017-10-22 16:00:33 +02:00 committed by GitHub
commit 50685a0101
2 changed files with 7 additions and 4 deletions

View File

@ -13,10 +13,6 @@ TARGET = retroarch
OBJDIR := obj-unix
ifeq ($(GLOBAL_CONFIG_DIR),)
GLOBAL_CONFIG_DIR = /etc
endif
OBJ :=
LIBS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY

View File

@ -10,6 +10,13 @@ add_define_make NOUNUSED_VARIABLE "$HAVE_NOUNUSED_VARIABLE"
[ -z "$CROSS_COMPILE" ] && [ -d /opt/local/lib ] && add_library_dirs /opt/local/lib
[ "$GLOBAL_CONFIG_DIR" ] || \
{ case "$PREFIX" in
/usr*) GLOBAL_CONFIG_DIR=/etc ;;
*) GLOBAL_CONFIG_DIR="$PREFIX"/etc ;;
esac
}
DYLIB=-ldl;
CLIB=-lc
PTHREADLIB=-lpthread