Commit d4195a52 by Victor M. Alvarez

Fix some issues while building in appveyor

......@@ -151,7 +151,7 @@ build_script:
- "%CMD_IN_ENV% python setup.py build_ext --enable-cuckoo --enable-dotnet
-L../jansson-%JANSSON_VERSION%/build/lib/Release;../%OPENSSL_LIB%/%OPENSSL_LIB_DIR%
-I../jansson-%JANSSON_VERSION%/build/include;../%OPENSSL_LIB%/include
-D_CRT_SECURE_NO_WARNINGS -DHASH_MODULE -DHAVE_LIBCRYPTO
--define _CRT_SECURE_NO_WARNINGS --define HASH_MODULE --define DHAVE_LIBCRYPTO
-llibcryptoMT -ladvapi32 -lws2_32 -lcrypt32"
after_build:
......
......@@ -158,6 +158,12 @@ class BuildExtCommand(build_ext):
else:
building_for_windows = False
for define in self.define or []:
module.define_macros.append(define)
for library in self.libraries or []:
module.libraries.append(library)
if 'macosx' in self.plat_name:
building_for_osx = True
module.include_dirs.append('/opt/local/include')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment