Use / instead of \ when accessing files in the dll subdirectory.
authorVincent Torri <vincent.torri@gmail.com>
Sat, 17 Nov 2018 06:44:23 +0000 (07:44 +0100)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 17 Nov 2018 06:44:23 +0000 (07:44 +0100)
This allow cross-compilation for Windows on Linux

lib/Makefile

index d7c8cb4..f7bd439 100644 (file)
@@ -103,8 +103,8 @@ $(LIBLZ4): $(SRCFILES)
 ifeq ($(BUILD_SHARED),yes)  # can be disabled on command line
        @echo compiling dynamic library $(LIBVER)
 ifneq (,$(filter Windows%,$(OS)))
-       $(Q)$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll\$@.dll
-       dlltool -D dll\liblz4.dll -d dll\liblz4.def -l dll\liblz4.lib
+       $(Q)$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll/$@.dll
+       dlltool -D dll/liblz4.dll -d dll/liblz4.def -l dll/liblz4.lib
 else
        $(Q)$(CC) $(FLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@
        @echo creating versioned links