Displaying 1 result from an estimated 1 matches for "_lazymain".
2011 Apr 18
0
[LLVMdev] [EXPERIMENTAL] Building Dragonegg on Cygwin
...gonegg's Makefile and build!
[Dragonegg]
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,8 @@ CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
-DGCC_MAJOR=$(GCC_MAJOR) -DGCC_MINOR=$(GCC_MINOR) \
-I$(INCLUDE_DIR) -I$(GCC_PLUGIN_DIR)/include
+LD_OPTIONS+=-Wl,-e,_lazymain at 12 -L $(GCC_PLUGIN_DIR)/lib -lcc1
+
LD_OPTIONS+=$(shell $(LLVM_CONFIG) --ldflags) $(LDFLAGS)
# NOTE: The following flags can only be used after TARGET_UTIL has been built.
6. check
$ /path/to/installed/gcc/bin/g++.exe -fplugin=./dragonegg.dll -O3 -S
hello.c -fplugin-arg-dragonegg-emit-ir
$ c...