Lines 1-7
Link Here
|
1 |
--- platform/x11/detect.py.orig 2017-12-28 05:14:45 UTC |
1 |
--- platform/x11/detect.py.orig 2018-03-04 00:52:04 UTC |
2 |
+++ platform/x11/detect.py |
2 |
+++ platform/x11/detect.py |
3 |
@@ -52,7 +52,9 @@ def get_opts(): |
3 |
@@ -52,7 +52,9 @@ def get_opts(): |
4 |
BoolVariable('use_static_cpp', 'Link stdc++ statically', False), |
4 |
BoolVariable('use_static_cpp', 'Link libgcc and libstdc++ statically for better portability', False), |
5 |
BoolVariable('use_sanitizer', 'Use LLVM compiler address sanitizer', False), |
5 |
BoolVariable('use_sanitizer', 'Use LLVM compiler address sanitizer', False), |
6 |
BoolVariable('use_leak_sanitizer', 'Use LLVM compiler memory leaks sanitizer (implies use_sanitizer)', False), |
6 |
BoolVariable('use_leak_sanitizer', 'Use LLVM compiler memory leaks sanitizer (implies use_sanitizer)', False), |
7 |
- BoolVariable('pulseaudio', 'Detect & use pulseaudio', True), |
7 |
- BoolVariable('pulseaudio', 'Detect & use pulseaudio', True), |
Lines 11-26
Link Here
|
11 |
BoolVariable('udev', 'Use udev for gamepad connection callbacks', False), |
11 |
BoolVariable('udev', 'Use udev for gamepad connection callbacks', False), |
12 |
EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), |
12 |
EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), |
13 |
BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False), |
13 |
BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False), |
14 |
@@ -154,7 +156,7 @@ def configure(env): |
14 |
@@ -154,7 +156,12 @@ def configure(env): |
15 |
# FIXME: Check for existence of the libs before parsing their flags with pkg-config |
15 |
# FIXME: Check for existence of the libs before parsing their flags with pkg-config |
16 |
|
16 |
|
17 |
if not env['builtin_openssl']: |
17 |
if not env['builtin_openssl']: |
18 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
18 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
19 |
+ env.ParseConfig('echo -lssl -lcrypto') |
19 |
+ try: |
|
|
20 |
+ # try to find a port installed openssl |
21 |
+ env.ParseConfig('pkg-config openssl --cflags --libs') |
22 |
+ except: |
23 |
+ # if none found use base system openssl |
24 |
+ env.ParseConfig('echo -lssl -lcrypto') |
20 |
|
25 |
|
21 |
if not env['builtin_libwebp']: |
26 |
if not env['builtin_libwebp']: |
22 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
27 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
23 |
@@ -226,12 +228,18 @@ def configure(env): |
28 |
@@ -226,12 +233,18 @@ def configure(env): |
24 |
|
29 |
|
25 |
## Flags |
30 |
## Flags |
26 |
|
31 |
|