search for: link_libs_in_shar

Displaying 11 results from an estimated 11 matches for "link_libs_in_shar".

Did you mean: link_libs_in_shared
2011 Jul 15
2
[LLVMdev] Makefile Question
Hello, I have a question about how to set up a Makefile that generate a .so that I can load into opt without getting duplicate symbols. Here's what I have right now: LIBRARYNAME=previrt SHARED_LIBRARY=previrt LINK_COMPONENTS := transformUtils LINK_LIBS_IN_SHARED=1 include $(LEVEL)/Makefile.common LIBS += -lprotobuf CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI LDFLAGS += -Wl,-L${HOME}/.root/usr/lib/ PROTOC=${HOME}/.root/usr/bin/protoc I'm pretty sure the problem comes from LINK_LIBS_IN_SHARED, but my code depends on the google...
2011 Jul 15
2
[LLVMdev] Makefile Question
...> right now: > > > Have you tried removing LINK_COMPONENTS below? I suspect that the opt > binary already contains everying in the transformUtils library. > > -- John T. > > > LIBRARYNAME=previrt > SHARED_LIBRARY=previrt > LINK_COMPONENTS := transformUtils > LINK_LIBS_IN_SHARED=1 > > include $(LEVEL)/Makefile.common > > LIBS += -lprotobuf > > CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI > LDFLAGS += -Wl,-L${HOME}/.root/usr/lib/ > PROTOC=${HOME}/.root/usr/bin/protoc > > I'm pretty sure the problem comes from LINK_LIB...
2011 Jul 15
0
[LLVMdev] Makefile Question
...ymbols. Here's > what I have right now: Have you tried removing LINK_COMPONENTS below? I suspect that the opt binary already contains everying in the transformUtils library. -- John T. > > LIBRARYNAME=previrt > SHARED_LIBRARY=previrt > LINK_COMPONENTS := transformUtils > LINK_LIBS_IN_SHARED=1 > > include $(LEVEL)/Makefile.common > > LIBS += -lprotobuf > > CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI > LDFLAGS += -Wl,-L${HOME}/.root/usr/lib/ > PROTOC=${HOME}/.root/usr/bin/protoc > > I'm pretty sure the problem comes from LINK_LIB...
2011 Jul 15
0
[LLVMdev] Makefile Question
...you tried removing LINK_COMPONENTS below?  I suspect that the opt >> binary already contains everying in the transformUtils library. >> >> -- John T. >> >> >> LIBRARYNAME=previrt >> SHARED_LIBRARY=previrt >> LINK_COMPONENTS := transformUtils >> LINK_LIBS_IN_SHARED=1 >> >> include $(LEVEL)/Makefile.common >> >> LIBS += -lprotobuf >> >> CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI >> LDFLAGS += -Wl,-L${HOME}/.root/usr/lib/ >> PROTOC=${HOME}/.root/usr/bin/protoc >> >> I'm pre...
2008 Apr 22
2
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
...build system which LLVM libraries your pass needs. You'll probably # need at least LLVMSystem.a, LLVMSupport.a, LLVMCore.a but possibly several # others too. # LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a SHARED_LIBRARY = 1 # ARCHIVE_LIBRARY = 1 DONT_BUILD_RELINKED = 1 # KEEP_SYMBOLS = 1 # LINK_LIBS_IN_SHARED = 1 # Include the makefile implementation stuff include $(LEVEL)/Makefile.common Thanks for your help!! I'm waiting for your answer. cheers, Nicole _______________________________________________________________________ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Dei...
2008 Jan 14
0
[LLVMdev] Linking Transform/Utils
...le="margin-bottom: 0cm; margin-top: 0pt;">I am writing a target for LLVM 2.1 and I want to use the method CloneFunction from Transform/Utils/. The symbol is defined only in libLLVMTransformUtils.a so I get a linking error (undefined symbol) when I execute the module. I tried adding the LINK_LIBS_IN_SHARED and LLVMLIBS flags to the makefile but it didn't work. I guess that I can modify the LLVM libTransformUtils build so that it creates a shared object so I can load it in runtime, it doesn't seem like a proper solution. <br> </p> <p style="margin-bottom: 0cm; margin-top:...
2010 Aug 05
2
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
...BRARYNAME).* + -$(Verb) $(RM) -f $(DestSharedDir)/$(SharedPrefix)$(LIBRARYNAME).* endif endif diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index 899406c..5238130 100644 --- a/tools/llvm-shlib/Makefile +++ b/tools/llvm-shlib/Makefile @@ -15,6 +15,17 @@ NO_BUILD_ARCHIVE = 1 LINK_LIBS_IN_SHARED = 1 SHARED_LIBRARY = 1 +include $(LEVEL)/Makefile.config + +ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) + EXPORTED_SYMBOL_FILE = $(ObjDir)/$(LIBRARYNAME).exports + + # It is needed to force static-stdc++.a linked. + # FIXME: It should be omitted when configure detects system...
2010 Aug 05
0
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Hi Takumi, > Any feedbacks are welcome. > Have fun! This seems to be pretty useful addition to LLVM on windows! And it seems the only painless way to make plugins working, yay! For me the patch looks pretty good. One minor thing: could you please rename SharedDir => SharedLibDir Thanks! -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg
2010 Aug 05
3
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
...RYNAME).* + -$(Verb) $(RM) -f $(DestSharedLibDir)/$(SharedPrefix)$(LIBRARYNAME).* endif endif diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index 899406c..5238130 100644 --- a/tools/llvm-shlib/Makefile +++ b/tools/llvm-shlib/Makefile @@ -15,6 +15,17 @@ NO_BUILD_ARCHIVE = 1 LINK_LIBS_IN_SHARED = 1 SHARED_LIBRARY = 1 +include $(LEVEL)/Makefile.config + +ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) + EXPORTED_SYMBOL_FILE = $(ObjDir)/$(LIBRARYNAME).exports + + # It is needed to force static-stdc++.a linked. + # FIXME: It should be omitted when configure detects system...
2005 May 19
3
[LLVMdev] [Cygwin] llvm 'make install' build errors
Reid, I think it is the first time it is run that the errors occcur !? Not sure but that would seem logical. Aaron
2015 Jul 22
2
[LLVMdev] (no subject)
Hello, I have tried a lot fix this error but am not able to can you please find me a solution am trying to compile the SAFECode in Cygwin Environment to work for windows. used make -j4 command to make the files in cygwin i have got this error make[5]: Leaving directory '/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include' /usr/bin/cp: cannot stat