mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
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:
parent
2fa74c997b
commit
5438eb1c6e
4
Makefile
4
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user