File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f6d5c56f21285a7625683f573dfa6e45a94dab8c
2
+ refs/heads/master: b2c3fc739c82968dcd629a7e3f3a468e366be976
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ ifdef CFG_UNIXY
84
84
CFG_RUN_TARG =$(call CFG_RUN,$(CFG_BUILD_DIR ) /$(1 ) ,$(2 ) )
85
85
CFG_RUN_TEST =$(call CFG_RUN,$(call CFG_TESTLIB,$(1 ) ) ,\
86
86
$(CFG_VALGRIND ) $(1 ) )
87
+ CFG_LIBUV_LINK_FLAGS =-lpthread
87
88
88
89
ifdef CFG_ENABLE_MINGW_CROSS
89
90
CFG_WINDOWSY := 1
@@ -123,6 +124,7 @@ ifdef CFG_WINDOWSY
123
124
CFG_RUN=PATH ="$(CFG_LDPATH ) :$(1 ) " $(2 )
124
125
CFG_RUN_TARG =$(call CFG_RUN,,$(2 ) )
125
126
CFG_RUN_TEST =$(call CFG_RUN,$(call CFG_TESTLIB,$(1 ) ) ,$(1 ) )
127
+ CFG_LIBUV_LINK_FLAGS =-lWs2_32
126
128
127
129
ifndef CFG_ENABLE_MINGW_CROSS
128
130
CFG_PATH_MUNGE := $(strip perl -i.bak -p \
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ RUNTIME_INCS := -I $(S)src/rt/isaac -I $(S)src/rt/uthash \
70
70
RUNTIME_OBJS := $(RUNTIME_CS:.cpp=.o ) $(RUNTIME_LL:.ll=.o ) $(RUNTIME_S:.s=.o )
71
71
RUNTIME_LIBS := $(S ) src/rt/libuv/uv.a
72
72
73
-
74
73
rt/% .o : rt/% .cpp $(MKFILES )
75
74
@$(call E, compile: $@ )
76
75
$(Q )$(call CFG_COMPILE_C, $@ , $(RUNTIME_INCS ) ) $<
@@ -96,10 +95,14 @@ rt/%.o: rt/%.ll $(MKFILES)
96
95
rt/$(CFG_RUNTIME ) : $(RUNTIME_OBJS ) $(MKFILES ) $(RUNTIME_HDR ) $(RUNTIME_DEF ) $(RUNTIME_LIBS )
97
96
@$(call E, link: $@ )
98
97
$(Q )$(call CFG_LINK_C,$@ , $(RUNTIME_OBJS ) \
99
- $(CFG_GCCISH_POST_LIB_FLAGS ) $(RUNTIME_LIBS ) -lpthread,$(RUNTIME_DEF ) )
98
+ $(CFG_GCCISH_POST_LIB_FLAGS ) $(RUNTIME_LIBS ) \
99
+ $(CFG_LIBUV_LINK_FLAGS ) ,$(RUNTIME_DEF ) )
100
100
101
+ # FIXME: For some reason libuv's makefiles can't figure out the correct definition
102
+ # of CC on the mingw I'm using, so we are explicitly using gcc. Also, we
103
+ # have to list environment variables first on windows... mysterious
101
104
$(S ) src/rt/libuv/uv.a : $(S ) src/rt/libuv/LIBUV_REVISION
102
- $(Q )$( MAKE ) -C $( S ) src/rt/libuv CFLAGS=\" -m32\" LDFLAGS=\" -m32\"
105
+ $(Q ) CFLAGS=\" -m32\" LDFLAGS=\" -m32\" CC=gcc $( MAKE ) -C $( S ) src/rt/libuv
103
106
$(Q ) mkdir -p rt/libuv
104
107
$(Q ) cp $(S ) src/rt/libuv/uv.a rt/libuv/uv.a
105
108
You can’t perform that action at this time.
0 commit comments