From ff982853b630dd20cca6302110523eb2341f7bf4 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Wed, 25 Jan 2017 06:34:26 +0100
Subject: [PATCH] Closes #34

---
 bob/extension/__init__.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bob/extension/__init__.py b/bob/extension/__init__.py
index ed11362..89684a2 100644
--- a/bob/extension/__init__.py
+++ b/bob/extension/__init__.py
@@ -407,6 +407,11 @@ class Extension(DistutilsExtension):
       parameters['libraries'] += libs
       self.pkg_libraries += libs
 
+      # if used libraries require extra compilation flags, add them to the mix
+      parameters['extra_compile_args'].extend(
+          pkg.cflags_other().get('extra_compile_args', [])
+          )
+
       parameters['extra_link_args'] += pkg.other_libraries()
 
     # add the -isystem to all system include dirs
-- 
GitLab