{
    'targets':
    [
        {
            'target_name': 'session',
            'sources': [
                './src/session/bindings.cpp',
                './src/session/session.cpp'
            ],
            'include_dirs': [
                './src/session', '/usr/include/jsoncpp'
            ],
            'cflags!':    [ '-fno-exceptions', '-fno-rtti' ],
            'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ],
            'cflags': [
                '-g',
                '-std=c++11',
                '-Wall',
                '-Werror',
                '-pedantic',
                '-pthread',
                '-fexceptions',
                '-frtti'
            ],
            "conditions": [
                [ 'OS=="mac"', {
                    "xcode_settings": {
                        "OTHER_CPLUSPLUSFLAGS" : [
                            "-std=c++11",
                            "-stdlib=libc++",
                            "-frtti",
                            "-fexceptions"
                        ],
                        "OTHER_LDFLAGS": [ "-stdlib=libc++" ],
                        "MACOSX_DEPLOYMENT_TARGET": "10.7"
                    },
                    'cflags!':    [ '-fno-exceptions', '-fno-rtti' ],
                    'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ],
                    'cflags': [ '-frtti', '-fexceptions' ]
                }]
            ],
            'link_settings': {
                'libraries': [
                    '-lpdalcpp',
                    '-lentwine',
                    '-pthread',
                    '-ljsoncpp'
                ]
            }
        }
    ]
}


@@ -660,16 +660,41 @@
 '-frtti'
+,%0A                '-fPIC'
 %0A       
@@ -1021,16 +1021,53 @@
 eptions%22
+,%0A                            %22-fPIC%22
 %0A       

Add fPIC flag.