File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ NO_OBJECTS =
29
29
30
30
DEPENDS = $(SOURCES:.c=.d ) $(WESTMERE_SOURCES:.c=.d ) $(HASWELL_SOURCES:.c=.d )
31
31
32
+ # The export header automatically defines visibility macros. These macros are
33
+ # required for standalone builds on Windows. I.e., exported functions must be
34
+ # declared with __declspec(dllexport) for dynamic link libraries (.dll) and
35
+ # __declspec(dllimport) for statically linked libraries (.lib). Define dummy
36
+ # macros for compatibility.
32
37
EXPORT_HEADER = include/zone/export.h
33
38
34
39
.PHONY : all clean
@@ -55,7 +60,7 @@ libzone.a: $(OBJECTS) $($(WESTMERE)_OBJECTS) $($(HASWELL)_OBJECTS)
55
60
56
61
$(EXPORT_HEADER ) :
57
62
@mkdir -p include/zone
58
- @echo " #define ZONE_EXPORT" > include/zone/export.h
63
+ @echo " #define ZONE_EXPORT" > $( EXPORT_HEADER )
59
64
60
65
$(WESTMERE_OBJECTS ) : $(EXPORT_HEADER ) .depend
61
66
@mkdir -p src/westmere
You can’t perform that action at this time.
0 commit comments