mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
On Cygwin/MingW, add SharedLibDir and LLVMToolDir to the library search path, since shared libraries are placed in 'bin'. (static libraries are still in 'lib').
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a771330366
commit
107506f814
@ -701,7 +701,13 @@ ifeq ($(HOST_OS),AuroraUX)
|
||||
CPP.BaseFlags += -include llvm/Support/Solaris.h
|
||||
endif # !HOST_OS - AuroraUX.
|
||||
|
||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||
# On Windows, SharedLibDir != LibDir. The order is important.
|
||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||
LD.Flags += -L$(SharedLibDir) -L$(LibDir) -L$(LLVMToolDir) -L$(LLVMLibDir)
|
||||
else
|
||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||
endif
|
||||
|
||||
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
||||
# All -I flags should go here, so that they don't confuse llvm-config.
|
||||
CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
|
||||
|
Loading…
Reference in New Issue
Block a user