If the --global-config-dir is not defined and --prefix is not set to /usr* add it to the --global-config-dir.

This commit is contained in:
orbea 2017-10-21 21:31:52 -07:00
parent 2fa74c997b
commit 5438eb1c6e
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