llvm.org GIT mirror llvm / 90f9b8a
Rules adjustments in order to build on DragonFly BSD. Patch by Robin Hahling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193750 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
3 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
273273 ifeq ($(ENABLE_OPTIMIZED),1)
274274 BuildMode := Release
275275 # Don't use -fomit-frame-pointer on Darwin or FreeBSD.
276 ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin FreeBSD GNU/kFreeBSD))
276 ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin DragonFly FreeBSD GNU/kFreeBSD))
277277 OmitFramePointer := -fomit-frame-pointer
278278 endif
279279
12891289 endif
12901290 endif
12911291
1292 ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
1292 ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux NetBSD FreeBSD GNU/kFreeBSD GNU))
12931293 ifneq ($(ARCH), Mips)
12941294 LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/autoconf/ExportMap.map
12951295 endif
181181 namespace fs {
182182 #if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
183183 defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__) || \
184 defined(__linux__) || defined(__CYGWIN__)
184 defined(__linux__) || defined(__CYGWIN__) || defined(__DragonFly__)
185185 static int
186186 test_dir(char buf[PATH_MAX], char ret[PATH_MAX],
187187 const char *dir, const char *bin)
250250 return link_path;
251251 }
252252 #elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
253 defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__)
253 defined(__OpenBSD__) || defined(__minix) || defined(__DragonFly__) || \
254 defined(__FreeBSD_kernel__)
254255 char exe_path[PATH_MAX];
255256
256257 if (getprogpath(exe_path, argv0) != NULL)
6161 endif
6262 endif
6363
64 ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
64 ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
6565 # Include everything from the .a's into the shared library.
6666 LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
6767 -Wl,--no-whole-archive
6868 endif
6969
70 ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD GNU))
70 ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU))
7171 # Add soname to the library.
7272 LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
7373 endif