Permalink
Browse files

zstd: fix cimpilation on windows #179

  • Loading branch information...
1 parent 82c4133 commit 8d67b5e481c2bd2e92ab9059e81dc717fe096f9c @ikruglov ikruglov committed Nov 17, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 Perl/shared/zstd/Makefile.PL
@@ -2,6 +2,7 @@ use 5.008;
use strict;
use warnings;
+use Config;
my @zstd_files = (
glob('common/*.c'),
@@ -23,6 +24,7 @@ print $fh q{
# This file is modified version (unnecessary parts are removed) of original
# Makefile provided in zstd repository
+CC = } . $Config{cc} . q{
CPPFLAGS+= -I. -I./common -DXXH_NAMESPACE=ZSTD_
CFLAGS ?= -O3
CFLAGS += -fPIC -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 \

0 comments on commit 8d67b5e

Please sign in to comment.