Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: test/module/src/module.gyp

Issue 9417020: linux: in module test, pass -ldl as a library not ldflag (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 Google Inc. All rights reserved. 1 # Copyright (c) 2009 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'conditions': [ 7 'conditions': [
8 ['OS=="win"', { 8 ['OS=="win"', {
9 'defines': ['PLATFORM_WIN'], 9 'defines': ['PLATFORM_WIN'],
10 }], 10 }],
11 ['OS=="mac"', { 11 ['OS=="mac"', {
12 'defines': ['PLATFORM_MAC'], 12 'defines': ['PLATFORM_MAC'],
13 }], 13 }],
14 ['OS=="linux"', { 14 ['OS=="linux"', {
15 'defines': ['PLATFORM_LINUX'], 15 'defines': ['PLATFORM_LINUX'],
16 # Support 64-bit shared libs (also works fine for 32-bit). 16 # Support 64-bit shared libs (also works fine for 32-bit).
17 'cflags': ['-fPIC'], 17 'cflags': ['-fPIC'],
18 'ldflags': ['-ldl'], 18 'libraries': ['-ldl'],
19 }], 19 }],
20 ], 20 ],
21 }, 21 },
22 'targets': [ 22 'targets': [
23 { 23 {
24 'target_name': 'program', 24 'target_name': 'program',
25 'type': 'executable', 25 'type': 'executable',
26 'dependencies': [ 26 'dependencies': [
27 'lib1', 27 'lib1',
28 'lib2', 28 'lib2',
(...skipping 17 matching lines...) Expand all
46 'product_name': 'lib2', 46 'product_name': 'lib2',
47 'product_prefix': '', 47 'product_prefix': '',
48 'type': 'loadable_module', 48 'type': 'loadable_module',
49 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''}, 49 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''},
50 'sources': [ 50 'sources': [
51 'lib2.c', 51 'lib2.c',
52 ], 52 ],
53 }, 53 },
54 ], 54 ],
55 } 55 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698