mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Rules adjustments in order to build on DragonFly BSD.
Patch by Robin Hahling. llvm-svn: 193750
This commit is contained in:
parent
33c9ff17db
commit
d1c6b9624f
@ -274,7 +274,7 @@ CPP.Defines :=
|
|||||||
ifeq ($(ENABLE_OPTIMIZED),1)
|
ifeq ($(ENABLE_OPTIMIZED),1)
|
||||||
BuildMode := Release
|
BuildMode := Release
|
||||||
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
|
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
|
||||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin FreeBSD GNU/kFreeBSD))
|
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin DragonFly FreeBSD GNU/kFreeBSD))
|
||||||
OmitFramePointer := -fomit-frame-pointer
|
OmitFramePointer := -fomit-frame-pointer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -1290,7 +1290,7 @@ LD.Flags += -Wl,-exported_symbol,_main
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
|
ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
|
||||||
ifneq ($(ARCH), Mips)
|
ifneq ($(ARCH), Mips)
|
||||||
LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/autoconf/ExportMap.map
|
LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/autoconf/ExportMap.map
|
||||||
endif
|
endif
|
||||||
|
@ -182,7 +182,7 @@ namespace sys {
|
|||||||
namespace fs {
|
namespace fs {
|
||||||
#if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
|
#if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
|
||||||
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__) || \
|
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__) || \
|
||||||
defined(__linux__) || defined(__CYGWIN__)
|
defined(__linux__) || defined(__CYGWIN__) || defined(__DragonFly__)
|
||||||
static int
|
static int
|
||||||
test_dir(char buf[PATH_MAX], char ret[PATH_MAX],
|
test_dir(char buf[PATH_MAX], char ret[PATH_MAX],
|
||||||
const char *dir, const char *bin)
|
const char *dir, const char *bin)
|
||||||
@ -251,7 +251,8 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
|
|||||||
return link_path;
|
return link_path;
|
||||||
}
|
}
|
||||||
#elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
|
#elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
|
||||||
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__)
|
defined(__OpenBSD__) || defined(__minix) || defined(__DragonFly__) || \
|
||||||
|
defined(__FreeBSD_kernel__)
|
||||||
char exe_path[PATH_MAX];
|
char exe_path[PATH_MAX];
|
||||||
|
|
||||||
if (getprogpath(exe_path, argv0) != NULL)
|
if (getprogpath(exe_path, argv0) != NULL)
|
||||||
|
@ -62,13 +62,13 @@ ifeq ($(HOST_OS),Darwin)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
|
ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
|
||||||
# Include everything from the .a's into the shared library.
|
# Include everything from the .a's into the shared library.
|
||||||
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
|
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
|
||||||
-Wl,--no-whole-archive
|
-Wl,--no-whole-archive
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD GNU))
|
ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU))
|
||||||
# Add soname to the library.
|
# Add soname to the library.
|
||||||
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
|
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user