mirror of
https://github.com/git/git.git
synced 2025-09-10 22:44:50 +02:00
Makefile: only set some BASIC_CFLAGS when RUNTIME_PREFIX is set
Several build variables only have any meaning when the RUNTIME_PREFIX
variable has been set. In particular, the following build variables are
otherwise ignored:
HAVE_BSD_KERN_PROC_SYSCTL
PROCFS_EXECUTABLE_PATH
HAVE_NS_GET_EXECUTABLE_PATH
HAVE_ZOS_GET_EXECUTABLE_PATH
HAVE_WPGMPTR
Make setting BASIC_CFLAGS, for each of these variables, conditional on
the RUNTIME_PREFIX being defined.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0d07e0617c
commit
507c63f96e
38
Makefile
38
Makefile
@@ -2179,10 +2179,6 @@ ifdef HAVE_BSD_SYSCTL
|
|||||||
BASIC_CFLAGS += -DHAVE_BSD_SYSCTL
|
BASIC_CFLAGS += -DHAVE_BSD_SYSCTL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef HAVE_BSD_KERN_PROC_SYSCTL
|
|
||||||
BASIC_CFLAGS += -DHAVE_BSD_KERN_PROC_SYSCTL
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef HAVE_GETDELIM
|
ifdef HAVE_GETDELIM
|
||||||
BASIC_CFLAGS += -DHAVE_GETDELIM
|
BASIC_CFLAGS += -DHAVE_GETDELIM
|
||||||
endif
|
endif
|
||||||
@@ -2213,25 +2209,33 @@ ifneq ($(findstring openssl,$(CSPRNG_METHOD)),)
|
|||||||
EXTLIBS += -lcrypto -lssl
|
EXTLIBS += -lcrypto -lssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(PROCFS_EXECUTABLE_PATH),)
|
|
||||||
procfs_executable_path_SQ = $(subst ','\'',$(PROCFS_EXECUTABLE_PATH))
|
|
||||||
BASIC_CFLAGS += '-DPROCFS_EXECUTABLE_PATH="$(procfs_executable_path_SQ)"'
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef HAVE_PLATFORM_PROCINFO
|
ifndef HAVE_PLATFORM_PROCINFO
|
||||||
COMPAT_OBJS += compat/stub/procinfo.o
|
COMPAT_OBJS += compat/stub/procinfo.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef HAVE_NS_GET_EXECUTABLE_PATH
|
ifdef RUNTIME_PREFIX
|
||||||
BASIC_CFLAGS += -DHAVE_NS_GET_EXECUTABLE_PATH
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef HAVE_ZOS_GET_EXECUTABLE_PATH
|
ifdef HAVE_BSD_KERN_PROC_SYSCTL
|
||||||
BASIC_CFLAGS += -DHAVE_ZOS_GET_EXECUTABLE_PATH
|
BASIC_CFLAGS += -DHAVE_BSD_KERN_PROC_SYSCTL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(PROCFS_EXECUTABLE_PATH),)
|
||||||
|
pep_SQ = $(subst ','\'',$(PROCFS_EXECUTABLE_PATH))
|
||||||
|
BASIC_CFLAGS += '-DPROCFS_EXECUTABLE_PATH="$(pep_SQ)"'
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef HAVE_NS_GET_EXECUTABLE_PATH
|
||||||
|
BASIC_CFLAGS += -DHAVE_NS_GET_EXECUTABLE_PATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef HAVE_ZOS_GET_EXECUTABLE_PATH
|
||||||
|
BASIC_CFLAGS += -DHAVE_ZOS_GET_EXECUTABLE_PATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef HAVE_WPGMPTR
|
||||||
|
BASIC_CFLAGS += -DHAVE_WPGMPTR
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef HAVE_WPGMPTR
|
|
||||||
BASIC_CFLAGS += -DHAVE_WPGMPTR
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef FILENO_IS_A_MACRO
|
ifdef FILENO_IS_A_MACRO
|
||||||
|
|||||||
Reference in New Issue
Block a user