mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 18:39:59 +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
|
OBJDIR := obj-unix
|
||||||
|
|
||||||
ifeq ($(GLOBAL_CONFIG_DIR),)
|
|
||||||
GLOBAL_CONFIG_DIR = /etc
|
|
||||||
endif
|
|
||||||
|
|
||||||
OBJ :=
|
OBJ :=
|
||||||
LIBS :=
|
LIBS :=
|
||||||
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
|
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
|
[ -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;
|
DYLIB=-ldl;
|
||||||
CLIB=-lc
|
CLIB=-lc
|
||||||
PTHREADLIB=-lpthread
|
PTHREADLIB=-lpthread
|
||||||
|
Loading…
x
Reference in New Issue
Block a user