{
  "targets": [
    {  
      'target_name': 'LDAP',
      'sources': [ 
        'src/LDAP.cc' 
      ],
      'include_dirs': [ 
        '/usr/local/include'
      ],
      'defines': [
        'LDAP_DEPRECATED'
      ],
      'cflags': [
        '-Wall',
        '--verbose',
        '-g'
      ],
      'ldflags': [
        '-L/usr/local/lib',
        '-lldap'
      ],
    }
  ]
}







{
  "targets": [
    {  
      'target_name': 'LDAP',
      'sources': [ 
        'src/LDAP.cc' 
      ],
      'include_dirs': [ 
        '/usr/local/include'
      ],
      'defines': [
        'LDAP_DEPRECATED'
      ],
      'cflags': [
        '-Wall',
        '--verbose',
        '-g'
      ],
      'ldflags': [
        '-L/usr/local/lib',
        '-lldap'
      ],
      'conditions': [
        ['OS=="linux"', {
            'ldflags': [
              '-luuid'
            ]
          }
        ],
        ['OS=="OSX"', {
            'ldflags': [
              '-luuid'
            ]
          }
        ],
      ]     
    }
  ]
}







Add -luuid for linux folks.