summaryrefslogtreecommitdiffstats
path: root/third_party/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/mesa')
-rw-r--r--third_party/mesa/mesa.gyp12
1 files changed, 11 insertions, 1 deletions
diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp
index 161a1b0..277add5 100644
--- a/third_party/mesa/mesa.gyp
+++ b/third_party/mesa/mesa.gyp
@@ -5,6 +5,15 @@
{
'variables': {
},
+ 'target_defaults': {
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+ '-fPIC',
+ ],
+ }],
+ ],
+ },
'targets': [
{
'target_name': 'mesa',
@@ -424,7 +433,8 @@
# replace it with a slow software renderer.
{
'target_name': 'osmesa',
- 'type': 'shared_library',
+ 'type': 'loadable_module',
+ 'mac_bundle': 0,
'dependencies': [
'mesa',
],