mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 19:50:24 +00:00
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:
commit
50685a0101
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…
Reference in New Issue
Block a user